# Admin API - Documentation

# Basket API Documentation

The Basket API is used for exporting and analyzing shopping cart data recorded via the partner program system. It allows you to retrieve detailed information on individual basket items in a structured CSV format for further processing.

The API can be accessed within the user interface under the **Data API** menu item.

---

### API Call

`https://<strong>www.domain.de</strong>/api//<strong>ACCESS-TOKEN</strong>/admin/<strong>ID</strong>/get-orders_baskets<strong>.csv</strong>`

<table id="bkmrk-value-description-ww"><thead><tr><td>**Value**</td><td>**Description**</td></tr></thead><tbody><tr><td><span>**www.domain.de**</span></td><td><span>Partner program system domain</span></td></tr><tr><td><span>**ACCESS-TOKEN**</span></td><td><span>User's Access Token</span></td></tr><tr><td><span>**ID**</span></td><td><span>User ID</span></td></tr><tr><td><span>**.csv**</span></td><td><span>Download file format</span></td></tr></tbody></table>

---

### Basket API Filtering

Various parameters can be used as filters for the Basket API. Below is an overview of all available parameters:

<table id="bkmrk-parameter-value-%2F-ex"><thead><tr><td>**Parameter**</td><td>**Value / Example**</td><td>**Description**</td></tr></thead><tbody><tr><td><span><code>condition&#91;period&#93;&#91;from&#93;</code></span></td><td><span>01.01.2025</span></td><td><span>Defines the **start date** of the time period</span></td></tr><tr><td><span><code>condition&#91;period&#93;&#91;to&#93;</code></span></td><td><span>31.01.2025</span></td><td><span>Defines the **end date** of the time period</span></td></tr><tr><td><span><code>condition&#91;l&#58;campaigns&#93;</code></span></td><td><span>1</span></td><td><span>Filters all baskets assigned to a specific campaign. Multiple values allowed.</span></td></tr><tr><td><span><code>condition&#91;datemode&#93;</code></span></td><td>processing

  

payout

  

incoming

</td><td>Determines the type of date period:

  

• **processing**: Baskets validated within the period

  

• **payout**: Baskets paid out within the period

  

• **incoming**: Baskets recorded within the period (transaction date)

</td></tr></tbody></table>

**Example:**

`condition[period][from]=01.01.2025&condition[period][to]=31.01.2025&condition[datemode]=processing`

---

### Field Definitions in the Basket API

The downloaded transactions (e.g., as a `.csv` file) contain the following columns:

<table id="bkmrk-field-name-descripti"><thead><tr><td>**Field Name**</td><td>**Description**</td></tr></thead><tbody><tr><td><code>&#60;span&#62;&#60;strong&#62;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Unique ID of the basket item</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;orderid&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Internal ID of the associated transaction</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;timestamp&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Timestamp of the transaction</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;ordertoken&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Order number of the transaction</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;trigger&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>ID of the trigger assigned to the transaction</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;is&#95;basket&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Indicates if it is a basket item (<code>true</code> / <code>false</code>)</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;basket&#95;item&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Unique ID of the basket item</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;category&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Category provided by the shop</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;productid&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Product ID in the shop</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;productname&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Name of the product in the shop</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;amount&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Number of products purchased</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;price&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Unit price of the product</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;original&#95;price&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Original unit price before changes</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;status&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Status of the basket item</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;total&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Total price (Quantity × Price)</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;commission&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Commission the publisher receives for the basket item</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;currency&#95;rate&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Conversion rate for foreign currencies</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;currency&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Currency of the transaction</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;is&#95;attributed&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Indicates whether attribution applies (<code>true</code> / <code>false</code>)</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;attribution&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Type of attribution per basket item</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;attributed&#95;price&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Attributed price per basket item</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;attributed&#95;total&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Attributed price × Quantity</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;trigger&#95;value&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Commission amount per basket item</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;original&#95;turnover&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Tracked revenue</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;price&#95;brutto&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Gross price of the basket item</span></td></tr></tbody></table>

# Transaction API Documentation

The Transaction API enables the structured export and analysis of transactions recorded within the partner program system. It provides detailed insights into individual transaction processes and assists with billing, performance measurement, and integration into internal or external systems.

The API can be accessed within the user interface under the **Data API** menu item.

---

### API Call

`https://<strong>www.domain.de</strong>/api//<strong>ACCESS-TOKEN</strong>/admin/<strong>ID</strong>/get-orders<strong>.csv</strong>`

<table id="bkmrk-value-description-ww"><thead><tr><td>**Value**</td><td>**Description**</td></tr></thead><tbody><tr><td><span>**www.domain.de**</span></td><td><span>System domain</span></td></tr><tr><td><span>**ACCESS-TOKEN**</span></td><td><span>User's Access Token</span></td></tr><tr><td><span>**ID**</span></td><td><span>User ID</span></td></tr><tr><td><span>**.csv**</span></td><td><span>Download file format</span></td></tr></tbody></table>

---

### Transaction API Filtering

Various parameters can be used as filters for the Transaction API. Below is an overview of all available parameters:

#### Transaction Status

<table id="bkmrk-parameter-value-exam"><thead><tr><td>**Parameter**</td><td>**Value**</td><td>**Example**</td><td>**Description**</td></tr></thead><tbody><tr><td><span><code>condition&#91;l&#58;status&#93;</code></span></td><td><span><code>open</code></span></td><td><span><code>condition&#91;l&#58;status&#93;&#61;open</code></span></td><td><span>All transactions defined as "Open" in the system</span></td></tr><tr><td> </td><td><span><code>confirmed</code></span></td><td><span><code>condition&#91;l&#58;status&#93;&#61;confirmed</code></span></td><td><span>All transactions defined as "Confirmed" in the system</span></td></tr><tr><td> </td><td><span><code>paid</code></span></td><td><span><code>condition&#91;l&#58;status&#93;&#61;paid</code></span></td><td><span>All transactions defined as "Paid" in the system</span></td></tr><tr><td> </td><td><span><code>canceled</code></span></td><td><span><code>condition&#91;l&#58;status&#93;&#61;canceled</code></span></td><td><span>All transactions defined as "Canceled" in the system</span></td></tr></tbody></table>

> **Note:** A combination of multiple statuses is possible. For example: `condition[l:status]=confirmed,paid`

#### General Filters

<table id="bkmrk-parameter-value-%2F-ex"><thead><tr><td>**Parameter**</td><td>**Value / Example**</td><td>**Description**</td></tr></thead><tbody><tr><td><span><code>condition&#91;period&#93;&#91;from&#93;</code></span></td><td><span>01.01.2025</span></td><td><span>Defines the **start date** of the time period</span></td></tr><tr><td><span><code>condition&#91;period&#93;&#91;to&#93;</code></span></td><td><span>31.01.2025</span></td><td><span>Defines the **end date** of the time period</span></td></tr><tr><td><span><code>condition&#91;l&#58;campaigns&#93;</code></span></td><td><span>1</span></td><td><span>Filters all baskets assigned to a specific **campaign**. Multiple values allowed.</span></td></tr><tr><td><span><code>condition&#91;datemode&#93;</code></span></td><td>processing

  

payout

  

incoming

</td><td>Determines the type of date period:

  

• **processing**: Baskets **validated** within the period

  

• **payout**: Baskets **paid out** within the period

  

• **incoming**: Baskets **recorded** within the period (transaction date)

</td></tr></tbody></table>

**Example:**

`condition[period][from]=01.01.2025&condition[period][to]=31.01.2025&condition[datemode]=processing`

---

### Field Definitions in the Transaction API

The downloaded transactions (e.g., as a `.csv` file) contain the following columns:

<table id="bkmrk-field-name-descripti" style="width:98.6905%;height:1722.58px;"><thead><tr style="height:29.7969px;"><td style="width:32.1603%;height:29.7969px;">**Field Name**</td><td style="width:67.7021%;height:29.7969px;">**Description**</td></tr></thead><tbody><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Unique ID of the transaction</span></td></tr><tr style="height:96.9844px;"><td style="width:32.1603%;height:96.9844px;"><code>&#60;span&#62;&#60;strong&#62;status&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:96.9844px;"><span>Status of the transaction</span>

<span>0 - open</span>

<span>1 - confirmed</span>

<span>2 - cancelled</span>

<span>3 - paid</span>

</td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;timestamp&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Timestamp of the transaction</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;campaign&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Campaign to which the transaction was assigned</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;attribution&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Amount of the paid attribution</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;delivered&#95;tagcode&#95;count&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Number of executed tags</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;delivered&#95;tagcode&#95;serversided&#95;url&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Transmitted server-side tracking call</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;ordertoken&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Order number transmitted by the advertiser</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;source&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Source of the transaction</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;project&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>ID of the project to which the transaction was assigned</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;admedia&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Ad media ID through which the transaction was generated</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;type&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Type of transaction (e.g., *Sale*, *Lead*, *View*)</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;commission&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Commission assigned to the publisher (will be updated when the order is changed)</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;source&#95;commission&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;">First commission value assigned to the publisher (will not be updated)</td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;commission&#95;group&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Commission group the publisher belonged to when the transaction was generated</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;trigger&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Trigger ID assigned to the transaction</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;description&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Description transmitted with the transaction</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;trigger&#95;value&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Remuneration rate defined in the corresponding trigger ID at the time of the transaction</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;trigger&#95;type&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Type of trigger (fixed remuneration or percentage remuneration)</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;turnover&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Commission-relevant order value</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><span>**<code>attributed&#95;turnover</code>** </span></td><td style="width:67.7021%;height:30.1094px;"><span>Attributed turnover (if attribution model is active)</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;original&#95;turnover&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Order value in the advertiser's currency</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;action&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Action ID transmitted with the transaction</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;salary&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>ID of the payout process in which the transaction was settled</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;session&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Session ID transmitted with the transaction</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;order&#95;currency&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Currency of the order</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;status&#95;change&#95;date&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Date of the last status change</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;cancel&#95;reason&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Reason for cancellation, if the transaction was canceled</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;source&#95;turnover&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Order value transmitted by the advertiser (will not be updated) </span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;last&#95;change&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Timestamp of the last change to the transaction</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;user&#95;agent&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Client information of the user who triggered the transaction</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;order&#95;actions&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Internal reference to the commission-relevant click or post-view</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;bonus&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>ID of a bonus run</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;customer&#95;journey&#95;status&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Internal key figure for the customer journey</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;ebestid&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Hashed order number displayed to the publisher</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;order&#95;timestamp&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Timestamp of the order call</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;action&#95;timestamp&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Timestamp of the action that led to the order</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;trigger&#95;title&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Name of the trigger</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;payoutdate&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Payout date</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;campaign&#95;group&#95;title&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Title of the commission group</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;project&#95;title&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Name of the project to which the transaction was assigned</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;campaign&#95;title&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Name of the campaign assigned to the transaction</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;advertiser&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>ID of the advertiser to whom the transaction was assigned</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><span>**<code>advertiser&#95;title</code>** </span></td><td style="width:67.7021%;height:30.1094px;"><span>Name of the advertiser to whom the transaction was assigned</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;publisher&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>ID of the publisher to whom the transaction was assigned</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;referrer&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Page where the click-triggering event occurred</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;country&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Country where the transaction was generated</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;subid&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Sub-ID transmitted with the transaction</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;publisher&#95;prename&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>First name of the publisher (from system data)</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;publisher&#95;surname&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Last name of the publisher (from system data)</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;publisher&#95;searchtitle&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Search title of the publisher (from system data)</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;basket&#95;items&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Number of items in the shopping cart</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;sub&#95;status&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Advertiser's internal status for managing the transaction</span></td></tr><tr style="height:30.1094px;"><td style="width:32.1603%;height:30.1094px;"><code>&#60;span&#62;&#60;strong&#62;visibility&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;height:30.1094px;"><span>Visibility for the publisher</span></td></tr><tr><td style="width:32.1603%;"><span>**<code>external&#95;sources&#95;entity&#95;id</code>** </span></td><td style="width:67.7021%;"><span>(Account) Id of the external source</span></td></tr><tr><td style="width:32.1603%;"><code>&#60;span&#62;&#60;strong&#62;external&#95;sources&#95;currency&#95;code&#60;br&#62;&#60;&#47;br&#62;&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;"><span>Currency Code imported from the external source</span></td></tr><tr><td style="width:32.1603%;"><code>&#60;span&#62;&#60;strong&#62;external&#95;sources&#95;currency&#95;rate&#60;br&#62;&#60;&#47;br&#62;&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;"><span>Currency Rate according to the external sources currency code and internal currency code</span></td></tr><tr><td style="width:32.1603%;"><code>&#60;span&#62;&#60;strong&#62;external&#95;sources&#95;turnover&#60;br&#62;&#60;&#47;br&#62;&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;"><span>Turnover imported from the external source</span></td></tr><tr><td style="width:32.1603%;"><code>&#60;span&#62;&#60;strong&#62;source&#95;project&#95;id&#60;br&#62;&#60;&#47;br&#62;&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;"><span>Publisher/Project id  imported from the external source</span></td></tr><tr><td style="width:32.1603%;"><code>&#60;span&#62;&#60;strong&#62;source&#95;project&#95;title&#60;br&#62;&#60;&#47;br&#62;&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;"><span>Publisher/Project title imported from the external source</span></td></tr><tr><td style="width:32.1603%;"><code>&#60;span&#62;&#60;strong&#62;turnover&#95;brutto&#60;br&#62;&#60;&#47;br&#62;&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td style="width:67.7021%;"><span>Turnover including tax</span></td></tr></tbody></table>

# Statistics API Documentation

The Statistics API enables the export and evaluation of aggregated performance data within the partner program system. It provides different types of statistics, such as evaluations by day, campaign, project, or ad media, thereby supporting performance analysis and optimization.

All APIs can be accessed within the user interface under the **Data API** menu item.

---

### API Call

`https://<strong>www.domain.de</strong>/api//<strong>ACCESS-TOKEN</strong>/admin/<strong>ID</strong>/get-statistic_daily<strong>.csv</strong>`

<table id="bkmrk-value-description-ww"><thead><tr><td>**Value**</td><td>**Description**</td></tr></thead><tbody><tr><td><span>**www.domain.de**</span></td><td><span>Partner program system domain</span></td></tr><tr><td><span>**ACCESS-TOKEN**</span></td><td><span>User's Access Token</span></td></tr><tr><td><span>**ID**</span></td><td><span>User ID</span></td></tr><tr><td><span>**get-statistic\_{Statistics-Type}**</span></td><td><span>Type of statistics (e.g., daily-based, etc.)</span></td></tr><tr><td><span>**.csv**</span></td><td><span>Download file format</span></td></tr></tbody></table>

---

### Statistics API Filtering

Various parameters can be used as filters for the Statistics API. Below is an overview of all available parameters:

#### Statistics Types

<table id="bkmrk-statistics-type-para"><thead><tr><td>**Statistics Type**</td><td>**Parameter**</td></tr></thead><tbody><tr><td><span>Statistics by day</span></td><td><span><code>get&#45;statistic&#95;daily</code></span></td></tr><tr><td><span>Statistics by advertiser</span></td><td><span><code>get&#45;statistic&#95;advertiser</code></span></td></tr><tr><td><span>Statistics by campaigns</span></td><td><span><code>get&#45;statistic&#95;campaign</code></span></td></tr><tr><td><span>Statistics by ad media</span></td><td><span><code>get&#45;statistic&#95;media</code></span></td></tr><tr><td><span>Statistics by publisher</span></td><td><span><code>get&#45;statistic&#95;publisher</code></span></td></tr><tr><td><span>Statistics by project</span></td><td><span><code>get&#45;statistic&#95;project</code></span></td></tr><tr><td><span>Statistics by SubID</span></td><td><span><code>get&#45;statistic&#95;subid</code></span></td></tr><tr><td><span>Statistics by referrer</span></td><td><span><code>get&#45;statistic&#95;referrer</code></span></td></tr><tr><td><span>Statistics by channel</span></td><td><span><code>get&#45;statistic&#95;channel</code></span></td></tr><tr><td><span>Statistics by commission group</span></td><td><span><code>get&#45;statistic&#95;provisionsgroup</code></span></td></tr><tr><td><span>Statistics by trigger</span></td><td><span><code>get&#45;statistic&#95;trigger</code></span></td></tr><tr><td><span>Statistics by journey</span></td><td><span><code>get&#45;statistic&#95;journey</code></span></td></tr><tr><td><span>Statistics by A/B test</span></td><td><span><code>get&#45;statistic&#95;abtest</code></span></td></tr><tr><td><span>Statistics by device type</span></td><td><span><code>get&#45;statistic&#95;devicetype</code></span></td></tr><tr><td><span>Statistics by device</span></td><td><span><code>get&#45;statistic&#95;device</code></span></td></tr><tr><td><span>Statistics by browser</span></td><td><span><code>get&#45;statistic&#95;browser</code></span></td></tr><tr><td><span>Statistics by operating system</span></td><td><span><code>get&#45;statistic&#95;os</code></span></td></tr><tr><td><span>Statistics by country</span></td><td><span><code>get&#45;statistic&#95;geocountry</code></span></td></tr><tr><td><span>Manual statistics</span></td><td><span><code>get&#45;statistic&#95;manualstatistics</code></span></td></tr></tbody></table>

#### General Filter Parameters

<table id="bkmrk-parameter-value-%2F-ex"><thead><tr><td>**Parameter**</td><td>**Value / Example**</td><td>**Description**</td></tr></thead><tbody><tr><td><span><code>condition&#91;period&#93;&#91;from&#93;</code></span></td><td><code>&#60;span&#62;01&#46;01&#46;2025&#60;&#47;span&#62;</code></td><td><span>Start date of the statistics</span></td></tr><tr><td><span><code>condition&#91;period&#93;&#91;to&#93;</code></span></td><td><code>&#60;span&#62;31&#46;01&#46;2025&#60;&#47;span&#62;</code></td><td><span>End date of the statistics</span></td></tr><tr><td><span><code>condition&#91;paymentstatus&#93;</code></span></td><td><code>all</code> = all

  

`0` = unpaid

  

`1` = paid

</td><td><span>Filters by payout status</span></td></tr><tr><td><span><code>condition&#91;dynamicdate&#93;</code></span></td><td><code>currentmonth</code> = current month

  

`lastmonth` = previous month

  

`currentweek` = current week

  

`last10d` = last 10 days

</td><td><span>Dynamic time periods</span></td></tr><tr><td><span><code>condition&#91;l&#58;publisher&#93;</code></span></td><td><code>&#60;span&#62;1234&#44;5678&#60;&#47;span&#62;</code></td><td><span>Filters by publisher IDs</span></td></tr><tr><td><span><code>condition&#91;project&#95;id&#93;</code></span></td><td><code>&#60;span&#62;12345&#60;&#47;span&#62;</code></td><td><span>Filters by project IDs</span></td></tr><tr><td><span><code>condition&#91;bruttodata&#93;</code></span></td><td><code>&#60;span&#62;true&#60;&#47;span&#62;</code></td><td><span>Returns gross figures (e.g., clicks/views)</span></td></tr><tr><td><span><code>condition&#91;l&#58;mandant&#93;</code></span></td><td><code>&#60;span&#62;1&#60;&#47;span&#62;</code></td><td><span>Filters by client (tenant) IDs</span></td></tr><tr><td><span><code>condition&#91;l&#58;advertiser&#93;</code></span></td><td><code>&#60;span&#62;2&#44;3&#60;&#47;span&#62;</code></td><td><span>Filters by advertiser IDs</span></td></tr><tr><td><span><code>condition&#91;l&#58;campaigns&#93;</code></span></td><td><code>&#60;span&#62;1&#44;3&#60;&#47;span&#62;</code></td><td><span>Filters by campaign IDs</span></td></tr></tbody></table>

---

### Breakdown by Additional Criteria (Dynamic Statistics)

The statistics can additionally be **broken down (segmented)** by further criteria. The parameter `condition[l:criterions]` is used for this purpose.

<table id="bkmrk-parameter-value-desc"><thead><tr><td>**Parameter**</td><td>**Value**</td><td>**Description**</td><td>**Example**</td></tr></thead><tbody><tr><td><span><code>condition&#91;l&#58;criterions&#93;</code></span></td><td><span><code>day</code></span></td><td><span>Breakdown by day</span></td><td><span><code>condition&#91;l&#58;criterions&#93;&#61;day</code></span></td></tr><tr><td> </td><td><span><code>publisher</code></span></td><td><span>Breakdown by publisher</span></td><td><span><code>condition&#91;l&#58;criterions&#93;&#61;publisher</code></span></td></tr><tr><td> </td><td><span><code>media</code></span></td><td><span>Breakdown by ad media</span></td><td><span><code>condition&#91;l&#58;criterions&#93;&#61;media</code></span></td></tr><tr><td> </td><td><span><code>advertiser</code></span></td><td><span>Breakdown by advertiser</span></td><td><span><code>condition&#91;l&#58;criterions&#93;&#61;advertiser</code></span></td></tr><tr><td> </td><td><span><code>campaign</code></span></td><td><span>Breakdown by campaign name</span></td><td><span><code>condition&#91;l&#58;criterions&#93;&#61;campaign</code></span></td></tr><tr><td> </td><td><span><code>campaign&#95;id</code></span></td><td><span>Breakdown by campaign ID</span></td><td><span><code>condition&#91;l&#58;criterions&#93;&#61;campaign&#95;id</code></span></td></tr><tr><td><span>**Combination**</span></td><td>e.g., <code>day&#44;publisher&#44;media</code></td><td>Multi-dimensional breakdown

</td><td><span><code>condition&#91;l&#58;criterions&#93;&#61;day&#44;publisher&#44;media</code></span></td></tr></tbody></table>

---

### Adding KPIs

You can add additional **Key Performance Indicators (KPIs)** to the statistics via the `condition[l:additional_parameters]` parameter.

<table id="bkmrk-parameter-value-desc-1"><thead><tr><td>**Parameter**</td><td>**Value**</td><td>**Description**</td><td>**Example**</td></tr></thead><tbody><tr><td><span><code>condition&#91;l&#58;additional&#95;parameters&#93;</code></span></td><td><span><code>all</code></span></td><td><span>Adds all available KPIs</span></td><td><span><code>condition&#91;l&#58;additional&#95;parameters&#93;&#61;all</code></span></td></tr></tbody></table>

## Definition of Fields in the Statistics API

The column names of the downloaded file contain the following parameters:

<table id="bkmrk-feldname-beschreibun" style="width:100%;height:1006.02px;"><tbody><tr style="height:29.7969px;"><th class="ak-renderer-tableHeader-sortable-column__wrapper" style="width:30.2819%;height:29.7969px;">**fieldname**

</th><th class="ak-renderer-tableHeader-sortable-column__wrapper" style="width:69.7181%;height:29.7969px;">**description**

</th></tr><tr style="height:63.3906px;"><td style="width:30.2819%;height:63.3906px;"><code>criterion</code>

</td><td style="width:69.7181%;height:63.3906px;">The criterion selected for the statistics. For example, if the statistics are grouped by day, this field displays the respective days. If the statistics are grouped by campaign, the corresponding campaign IDs are displayed here. Generally, this field outputs the ID.

</td></tr><tr style="height:46.5938px;"><td style="width:30.2819%;height:46.5938px;"><code>title</code>

</td><td style="width:69.7181%;height:46.5938px;">The name of the corresponding selected criterion (e.g., <span class="citation-1822 citation-1823 citation-1824 citation-end-1824">the name of the campaign or project).</span>

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>leads&#95;open&#95;count</code>

</td><td style="width:69.7181%;height:30.1094px;">Number of open leads.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>leads&#95;confirmed&#95;count</code>

</td><td style="width:69.7181%;height:30.1094px;">Number of confirmed leads.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>leads&#95;canceled&#95;count</code>

</td><td style="width:69.7181%;height:30.1094px;">Number of canceled leads.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>sales&#95;open&#95;count</code>

</td><td style="width:69.7181%;height:30.1094px;">Number of open sales.

</td></tr><tr style="height:33.4531px;"><td style="width:30.2819%;height:33.4531px;"><code>sales&#95;confirmed&#95;count</code>

</td><td style="width:69.7181%;height:33.4531px;"><span>**<span class="citation-1795 citation-1796 citation-end-1796"><sup class="superscript"></sup></span><span class="citation-1795 citation-end-1795"><sup class="superscript"></sup></span>**</span><span><span class="citation-1793 citation-1794 citation-end-1794">Number of confirmed sales.</span></span>

</td></tr><tr style="height:33.4531px;"><td style="width:30.2819%;height:33.4531px;"><code>sales&#95;canceled&#95;count</code>

</td><td style="width:69.7181%;height:33.4531px;"><span class="citation-1789 citation-1790 citation-end-1790">Number of canceled sales<sup class="superscript"></sup></span><span class="citation-1789 citation-end-1789">.</span>

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>all&#95;open&#95;count</code>

</td><td style="width:69.7181%;height:30.1094px;">Total number of open leads and sales combined.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>all&#95;confirmed&#95;count</code>

</td><td style="width:69.7181%;height:30.1094px;">Total number of confirmed leads and sales combined.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>all&#95;canceled&#95;count</code>

</td><td style="width:69.7181%;height:30.1094px;">Total number of canceled leads and sales combined.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>leads&#95;open&#95;provision</code>

</td><td style="width:69.7181%;height:30.1094px;">Commission total for open leads.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>leads&#95;confirmed&#95;provision</code>

</td><td style="width:69.7181%;height:30.1094px;">Commission total for confirmed leads.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>leads&#95;canceled&#95;provision</code>

</td><td style="width:69.7181%;height:30.1094px;">Commission total for canceled leads.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>sales&#95;open&#95;provision</code>

</td><td style="width:69.7181%;height:30.1094px;">Commission total for open sales.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>sales&#95;confirmed&#95;provision</code>

</td><td style="width:69.7181%;height:30.1094px;">Commission total for confirmed sales.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>sales&#95;canceled&#95;provision</code>

</td><td style="width:69.7181%;height:30.1094px;">Commission total for canceled sales.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>all&#95;open&#95;provision</code>

</td><td style="width:69.7181%;height:30.1094px;">Total commission for open leads and sales combined.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>all&#95;confirmed&#95;provision</code>

</td><td style="width:69.7181%;height:30.1094px;">Total commission for confirmed leads and sales combined.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>all&#95;canceled&#95;provision</code>

</td><td style="width:69.7181%;height:30.1094px;">Total commission for canceled leads and sales combined.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>views</code>

</td><td style="width:69.7181%;height:30.1094px;">Number of views.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>clicks</code>

</td><td style="width:69.7181%;height:30.1094px;">Number of clicks.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>epc</code>

</td><td style="width:69.7181%;height:30.1094px;">The calculated average earnings per click.

</td></tr><tr style="height:46.5938px;"><td style="width:30.2819%;height:46.5938px;"><code>ctr</code>

</td><td style="width:69.7181%;height:46.5938px;">This value indicates how many users actually clicked on the advertising material after seeing it (Click-Through Rate).

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>leads&#95;canceled&#95;turnover</code>

</td><td style="width:69.7181%;height:30.1094px;">Total shopping cart value of canceled leads.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>leads&#95;open&#95;turnover</code>

</td><td style="width:69.7181%;height:30.1094px;">Total shopping cart value of open leads.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>leads&#95;confirmed&#95;turnover</code>

</td><td style="width:69.7181%;height:30.1094px;">Total shopping cart value of confirmed leads.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>sales&#95;canceled&#95;turnover</code>

</td><td style="width:69.7181%;height:30.1094px;">Total shopping cart value of canceled sales.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>sales&#95;open&#95;turnover</code>

</td><td style="width:69.7181%;height:30.1094px;">Total shopping cart value of open sales.

</td></tr><tr style="height:30.1094px;"><td style="width:30.2819%;height:30.1094px;"><code>sales&#95;confirmed&#95;turnover</code>

</td><td style="width:69.7181%;height:30.1094px;">Total shopping cart value of confirmed sales.

</td></tr></tbody></table>

# Touchpoints / Customer Journey API Documentation

The Customer Journey Orders API is used for exporting and analyzing customer journey data recorded via the partner program system. It allows you to retrieve detailed information on individual touchpoints (actions) of an order in a structured CSV format, enabling precise tracking of user paths leading up to a conversion.

The API can be accessed within the user interface under the **Data API** menu item.

---

### API Call

`https://<strong>DOMAIN</strong>/api/<strong>ACCESS-TOKEN</strong>/admin/<strong>ID</strong>/get-customerjourney_orders<strong>.csv</strong>`

<table id="bkmrk-value-description-do"><thead><tr><td>**Value**</td><td>**Description**</td></tr></thead><tbody><tr><td><span>**DOMAIN**</span></td><td><span>Partner program system domain</span></td></tr><tr><td><span>**ACCESS-TOKEN**</span></td><td><span>User's Access Token</span></td></tr><tr><td><span>**ID**</span></td><td><span>User ID</span></td></tr><tr><td><span>**.csv**</span></td><td><span>Download file format</span></td></tr></tbody></table>

---

### Customer Journey API Filtering

Various parameters can be used as filters for the Customer Journey API. Below is an overview of the available parameters:

<table id="bkmrk-parameter-value-%2F-ex"><thead><tr><td>**Parameter**</td><td>**Value / Example**</td><td>**Description**</td></tr></thead><tbody><tr><td><span><code>condition&#91;period&#93;&#91;from&#93;</code></span></td><td><span>2026-02-04</span></td><td><span>Defines the start date of the time period (order date).</span></td></tr><tr><td><span><code>condition&#91;period&#93;&#91;to&#93;</code></span></td><td><span>2026-02-04</span></td><td><span>Defines the end date of the time period (order date).</span></td></tr><tr><td><span><code>condition&#91;dynamicdate&#93;</code></span></td><td><span><code>currentmonth</code>, <code>lastmonth</code>, <code>last10d</code>, <code>currentweek</code></span></td><td>Defines a dynamic time period.

  

**Note:** Cannot be used in conjunction with `period[from]` or `period[to]`.

</td></tr><tr><td><span><code>condition&#91;l&#58;campaigns&#93;</code></span></td><td><span>1</span></td><td><span>Filters all data assigned to a specific campaign. Multiple values allowed.</span></td></tr><tr><td><span><code>condition&#91;l&#58;projects&#93;</code></span></td><td><span>1234</span></td><td><span>Filters all transactions recorded under the corresponding project ID of the program. Multiple values allowed.</span></td></tr></tbody></table>

#### Examples of Filtered API Calls:

- **Fixed Time Period:** `condition[period][from]=2026-02-04&condition[period][to]=2026-02-04&condition[l:campaigns]=1`
- **Dynamic Time Period:** `condition[dynamicdate]=currentweek&condition[l:projects]=1234`

---

### Field Definitions (Columns)

The downloaded transactions contain the following columns:

<table id="bkmrk-field-name-descripti"><thead><tr><td>**Field Name**</td><td>**Description**</td></tr></thead><tbody><tr><td><code>&#60;span&#62;&#60;strong&#62;order&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Internal ID of the associated transaction / order</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;ordertoken&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Order number of the transaction from the shop system</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;campaign&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>ID of the campaign to which the order is assigned</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;order&#95;timestamp&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Timestamp of the order receipt (Format: YYYY-MM-DD HH:MM:SS+TZ)</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;trigger&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>ID of the trigger assigned to the order</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;project&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>ID of the project (Attribution Target)</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;admedia&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>ID of the ad media used for the order</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;action&#95;timestamp&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Timestamp of the click or impression (Touchpoint)</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;type&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Type of touchpoint (e.g., <code>click</code>)</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;action&#95;campaign&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Campaign ID of the specific touchpoint within the journey</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;action&#95;project&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Project ID of the specific touchpoint</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;action&#95;admedia&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>Ad media ID of the specific touchpoint</span></td></tr><tr><td><code>&#60;span&#62;&#60;strong&#62;referrer&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span>The URL from which the user was redirected to the shop (including tracking parameters)</span></td></tr></tbody></table>

# Order Webservice

# Create / easy.affiliate REST-API (Orders)

### 📝 Introduction

A REST-compliant web service is available to automatically create new orders within the easy.affiliate system. New transactions can be transmitted using the HTTP **POST** method. For this purpose, each user receives an authentication token and a login ID, which can be viewed in the frontend.

---

### 🔐 Authentication

The following headers are required to access the API:

<table data-path-to-node="7" id="bkmrk-header-description-t"><thead><tr><td>**Header**</td><td>**Description**</td><td>**Type**</td></tr></thead><tbody><tr><td><span data-path-to-node="7,1,0,0">**Content-Type**</span></td><td><span data-path-to-node="7,1,1,0">Must be set to <code>application&#47;json</code></span></td><td><span data-path-to-node="7,1,2,0">String</span></td></tr><tr><td><span data-path-to-node="7,2,0,0">**X-Network-ID**</span></td><td><span data-path-to-node="7,2,1,0">Network ID: typically <code>&#45;1</code> for cross-client (multi-tenant) API</span></td><td><span data-path-to-node="7,2,2,0">Integer</span></td></tr><tr><td><span data-path-to-node="7,3,0,0">**X-Auth-Token**</span></td><td><span data-path-to-node="7,3,1,0">Your API token (visible in the frontend)</span></td><td><span data-path-to-node="7,3,2,0">String</span></td></tr><tr><td><span data-path-to-node="7,4,0,0">**X-Auth-ID**</span></td><td><span data-path-to-node="7,4,1,0">Your login ID (visible in the frontend)</span></td><td><span data-path-to-node="7,4,2,0">Integer</span></td></tr></tbody></table>

---

### 📩 Endpoints

- **Admin:** `https://DOMAIN.de/ws/V6/admin/JSON/Orders`
- **Advertiser:** `https://DOMAIN.de/ws/V6/advertiser/JSON/Orders`

---

### 🧪 Example (cURL)

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-43 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-bash" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_41c0f5ad5cc76f47&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_c10d37afb03bf2aa&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-43 ng-star-inserted"><span class="ng-tns-c1630465722-43">Bash</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-43 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-43 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-43 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-43"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-43"></div></div></div>

```
curl -X POST \
  -H "Content-Type: application/json" \
  -H "X-Network-ID: -1" \
  -H "X-Auth-Token: ADMIN_APIUSER_TOKEN" \
  -H "X-Auth-ID: ADMIN_APIUSER_LOGIN_ID" \
  -d '[{
    "ordertoken": "testorder001",
    "campaign_id": 1,
    "trigger_id": 2,
    "status": 1,
    "turnover": 199.99,
    "commission": 20.00
  }]' \
  https://SUBDOMAIN.de/ws/V6/admin/JSON/Orders

```

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-43 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--4" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_41c0f5ad5cc76f47&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_c10d37afb03bf2aa&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-43"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-43"></div></div></div>---

### 🧾 Body Parameters

<table data-path-to-node="13" id="bkmrk-parameter-descriptio"><thead><tr><td>**Parameter**</td><td>**Description**</td><td>**Data Type**</td><td>**Required**</td></tr></thead><tbody><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;13&#44;1&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;13&#44;1&#44;0&#44;0&#34;&#62;ordertoken&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="13,1,1,0">Unique identifier for the order. Must be system-wide unique.</span></td><td><span data-path-to-node="13,1,2,0">String</span></td><td><span data-path-to-node="13,1,3,0">✅ Yes</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;13&#44;2&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;13&#44;2&#44;0&#44;0&#34;&#62;campaign&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="13,2,1,0">ID of the campaign to which the order is assigned.</span></td><td><span data-path-to-node="13,2,2,0">Integer</span></td><td><span data-path-to-node="13,2,3,0">✅ Yes</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;13&#44;3&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;13&#44;3&#44;0&#44;0&#34;&#62;trigger&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="13,3,1,0">ID of the trigger, which is mandatory when using <code>ordertoken</code>.</span></td><td><span data-path-to-node="13,3,2,0">Integer</span></td><td><span data-path-to-node="13,3,3,0">✅ Yes</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;13&#44;4&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;13&#44;4&#44;0&#44;0&#34;&#62;status&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="13,4,1,0">Status of the order: <code>0</code> = open, <code>1</code> = confirmed, <code>2</code> = canceled</span></td><td><span data-path-to-node="13,4,2,0">Integer</span></td><td><span data-path-to-node="13,4,3,0">✅ Yes</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;13&#44;5&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;13&#44;5&#44;0&#44;0&#34;&#62;turnover&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="13,5,1,0">Order value in campaign currency</span></td><td><span data-path-to-node="13,5,2,0">Float</span></td><td><span data-path-to-node="13,5,3,0">✅ Yes</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;13&#44;6&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;13&#44;6&#44;0&#44;0&#34;&#62;original&#95;turnover&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="13,6,1,0">Order value in foreign currency</span></td><td><span data-path-to-node="13,6,2,0">Float</span></td><td><span data-path-to-node="13,6,3,0">No</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;13&#44;7&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;13&#44;7&#44;0&#44;0&#34;&#62;commission&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="13,7,1,0">Commission value in campaign currency. Can be passed if calculated manually.</span></td><td><span data-path-to-node="13,7,2,0">Float</span></td><td><span data-path-to-node="13,7,3,0">No</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;13&#44;8&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;13&#44;8&#44;0&#44;0&#34;&#62;cancel&#95;reason&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="13,8,1,0">Specifies a reason for cancellation if status = <code>2</code> (canceled)</span></td><td><span data-path-to-node="13,8,2,0">String</span></td><td><span data-path-to-node="13,8,3,0">No</span></td></tr></tbody></table>

---

### 📘 Notes

Important implementation details:

- **ordertoken:** Must be **unique** – ideally a combination of a timestamp, shop ID, or external order number.
- **trigger\_id:** If you do not know this ID, check your campaign configuration in the frontend.
- **Bulk Actions:** You can also create multiple orders at once by sending them within a single array.
- **Updates:** If an order with the same `ordertoken` already exists in the system, a **PUT request** can be used to update it.

# Update / easy.affiliate REST-API (Orders)

### 📝 Introduction

To enable the automated processing of orders within the easy.affiliate system, easy Marketing GmbH provides a web service API. This allows you to modify existing orders after they have been created, as soon as they go through the validation process.

Each user has an **Authentication Token** and a **Login ID** available, which can be retrieved via the frontend.

- **User ID:** Where is the User ID stored? (See frontend profile)
- **Access Token:** Where is the Access Token stored? (See API settings)

---

## 📩 Endpoints

<table data-path-to-node="8" id="bkmrk-target-group-url-adm"><thead><tr><td>**Target Group**</td><td>**URL**</td></tr></thead><tbody><tr><td><span data-path-to-node="8,1,0,0">**Admin**</span></td><td><span data-path-to-node="8,1,1,0"><code>https&#58;&#47;&#47;SUBDOMAIN&#46;de&#47;ws&#47;V6&#47;admin&#47;JSON&#47;Orders</code></span></td></tr><tr><td><span data-path-to-node="8,2,0,0">**Advertiser**</span></td><td><span data-path-to-node="8,2,1,0"><code>https&#58;&#47;&#47;SUBDOMAIN&#46;de&#47;ws&#47;V6&#47;advertiser&#47;JSON&#47;Orders</code></span></td></tr></tbody></table>

---

## 🧪 Examples

#### Example with cURL

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-54 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-bash" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_872effa7e5419502&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_21ce8472f4b004f5&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-54 ng-star-inserted"><span class="ng-tns-c1630465722-54">Bash</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-54 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-54 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-54 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-54"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-54"></div></div></div>

```
curl -X PUT \
  -H "Content-Type: application/json" \
  -H "X-Network-ID: -1" \
  -H "X-Auth-Token: ADMIN_APIUSER_TOKEN" \
  -H "X-Auth-ID: ADMIN_APIUSER_LOGIN_ID" \
  -d '[{ "campaign_id": 1, "id": 12345, "status": 1, "turnover":100.00, "commission":12.34 },{ "campaign_id": 1, "ordertoken":"123a456b", "status": 2, "turnover": 0.00 }]' \
  https://DOMAIN/ws/V6/admin/JSON/Orders

```

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-54 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--3" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_872effa7e5419502&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_21ce8472f4b004f5&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-54"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-54"></div></div></div>#### Code Example

Multiple orders can be updated at once using the following format. An example request looks like this:

**Headers:**

<table data-path-to-node="16" id="bkmrk-variable-value-%2F-mea"><thead><tr><td>**Variable**</td><td>**Value / Meaning**</td></tr></thead><tbody><tr><td><span data-path-to-node="16,1,0,0">**Content-Type**</span></td><td><span data-path-to-node="16,1,1,0"><code>application&#47;json</code></span></td></tr><tr><td><span data-path-to-node="16,2,0,0">**X-Network-ID**</span></td><td><span data-path-to-node="16,2,1,0"><code>&#45;1</code></span></td></tr><tr><td><span data-path-to-node="16,3,0,0">**X-Auth-Token**</span></td><td><span data-path-to-node="16,3,1,0"><code>ADMIN&#95;APIUSER&#95;TOKEN</code></span></td></tr><tr><td><span data-path-to-node="16,4,0,0">**X-Auth-ID**</span></td><td><span data-path-to-node="16,4,1,0"><code>ADMIN&#95;APIUSER&#95;LOGIN&#95;ID</code></span></td></tr></tbody></table>

**Body:**

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-55 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-json" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_872effa7e5419502&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_21ce8472f4b004f5&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-55 ng-star-inserted"><span class="ng-tns-c1630465722-55">JSON</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-55 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-55 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-55 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-55"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-55"></div></div></div>

```
[
    {
        "id": "12345",
        "campaign_id": 1,
        "status": 1,
        "turnover": 10.00,
        "commission": 0.99
    },
    {
        "ordertoken": "123a456b",
        "campaign_id": 1,
        "trigger_id": 1,              
        "status": 2,
        "turnover": 9.99,
        "cancel_reason": "Cancellation Reason"
    }
]

```

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-55 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--5" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_872effa7e5419502&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_21ce8472f4b004f5&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-55"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-55"></div></div></div>---

### 🧾 Parameter Explanations

#### Headers

<table data-path-to-node="22" id="bkmrk-variable-meaning-dat"><thead><tr><td>**Variable**</td><td>**Meaning**</td><td>**Data Type**</td></tr></thead><tbody><tr><td><span data-path-to-node="22,1,0,0">**Content-Type**</span></td><td><span data-path-to-node="22,1,1,0">The Content-Type of the request</span></td><td><span data-path-to-node="22,1,2,0">String</span></td></tr><tr><td><span data-path-to-node="22,2,0,0">**X-NETWORKID**</span></td><td><span data-path-to-node="22,2,1,0">The client (tenant) ID is entered here. If only one client exists or you are working across all clients, the value <code>&#45;1</code> must be entered.</span></td><td><span data-path-to-node="22,2,2,0">Integer</span></td></tr><tr><td><span data-path-to-node="22,3,0,0">**X-AUTH-TOKEN**</span></td><td><span data-path-to-node="22,3,1,0">The API authentication token of the admin user is stored here.</span></td><td><span data-path-to-node="22,3,2,0">String</span></td></tr><tr><td><span data-path-to-node="22,4,0,0">**X-AUTH-ID**</span></td><td><span data-path-to-node="22,4,1,0">The ID of the admin user is stored here.</span></td><td><span data-path-to-node="22,4,2,0">Integer</span></td></tr></tbody></table>

#### Body

The standard parameters are listed below. However, it is possible to update any available parameter via the API.

<table data-path-to-node="25" id="bkmrk-parameter-explanatio"><thead><tr><td>**Parameter**</td><td>**Explanation**</td><td>**Data Type**</td><td>**Required**</td></tr></thead><tbody><tr><td><span data-path-to-node="25,1,0,0">**id**</span></td><td>The transaction ID.

  

Format: `"id":"ID"`

</td><td><span data-path-to-node="25,1,2,0">String</span></td><td><span data-path-to-node="25,1,3,0">Yes (or <code>ordertoken</code>)</span></td></tr><tr><td><span data-path-to-node="25,2,0,0">**ordertoken**</span></td><td>The order token.

  

Format: `"ordertoken":"ORDERTOKEN"`

</td><td><span data-path-to-node="25,2,2,0">String</span></td><td><span data-path-to-node="25,2,3,0">Yes (or <code>id</code>)\*</span></td></tr><tr><td><span data-path-to-node="25,3,0,0">**campaign\_id**</span></td><td>The campaign ID.

  

Format: `"campaign_id":CAMPAIGN_ID`

</td><td><span data-path-to-node="25,3,2,0">Integer</span></td><td><span data-path-to-node="25,3,3,0">Yes</span></td></tr><tr><td><span data-path-to-node="25,4,0,0">**trigger\_id**</span></td><td>The trigger ID.

  

Format: `"trigger_id":TRIGGER_ID`

</td><td><span data-path-to-node="25,4,2,0">Integer</span></td><td><span data-path-to-node="25,4,3,0">No, only if <code>ordertoken</code> is used.\*</span></td></tr><tr><td><span data-path-to-node="25,5,0,0">**status**</span></td><td>The status of the order.

  

Values: `-5` (pending inquiry), `0` (open), `1` (confirmed), `2` (canceled)

</td><td><span data-path-to-node="25,5,2,0">Integer</span></td><td><span data-path-to-node="25,5,3,0">No</span></td></tr><tr><td><span data-path-to-node="25,6,0,0">**turnover**</span></td><td>The order value of the transaction in campaign currency.

  

Format: `"turnover":TURNOVER`

</td><td><span data-path-to-node="25,6,2,0">Float</span></td><td><span data-path-to-node="25,6,3,0">No</span></td></tr><tr><td><span data-path-to-node="25,7,0,0">**original\_turnover**</span></td><td>The order value of the transaction in foreign currency.

  

Format: `"original_turnover":FOREIGN_CURRENCY_TURNOVER`

</td><td><span data-path-to-node="25,7,2,0">Float</span></td><td><span data-path-to-node="25,7,3,0">No</span></td></tr><tr><td><span data-path-to-node="25,8,0,0">**commission**</span></td><td><span data-path-to-node="25,8,1,0">The commission amount in campaign currency, if you prefer to calculate the commission yourself.</span></td><td><span data-path-to-node="25,8,2,0">Float</span></td><td><span data-path-to-node="25,8,3,0">No</span></td></tr><tr><td>---

<span data-path-to-node="25,9,0,0">**cancel\_reason**</span></td><td>Provide the reason for cancellation.

  

Format: `"cancel_reason":"Cancellation Reason"`

</td><td><span data-path-to-node="25,9,2,0">String</span></td><td><span data-path-to-node="25,9,3,0">No</span></td></tr></tbody></table>

> **\*) Note:** If the `ordertoken` is used, the `trigger_id` becomes a mandatory field in addition to the `campaign_id`.

# Publisher Webservice

# Project Management via the V6 REST-API

### Introduction

The V6 REST-API provides administrators with the ability to manage projects efficiently. Using the `/Projects` endpoint, projects can be created, retrieved, updated, and deleted. Additionally, projects can be filtered using various parameters.

### Endpoint

- **For Admins:** `https://SUBDOMAIN.de/ws/V6/admin/JSON/Projects`

---

### Parameters &amp; Filters

#### Required Parameters (for POST and PUT)

<table data-path-to-node="10" id="bkmrk-parameter-type-descr"><thead><tr><td>**Parameter**</td><td>**Type**</td><td>**Description**</td></tr></thead><tbody><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;10&#44;1&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;10&#44;1&#44;0&#44;0&#34;&#62;title&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="10,1,1,0">String</span></td><td><span data-path-to-node="10,1,2,0">Title of the project (Mandatory)</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;10&#44;2&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;10&#44;2&#44;0&#44;0&#34;&#62;status&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="10,2,1,0">Integer</span></td><td><span data-path-to-node="10,2,2,0">Status of the project (Mandatory)</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;10&#44;3&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;10&#44;3&#44;0&#44;0&#34;&#62;url&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="10,3,1,0">String</span></td><td><span data-path-to-node="10,3,2,0">URL of the project (Mandatory)</span></td></tr></tbody></table>

#### Filter Options (for GET)

Filtering can be applied to any column in the `publisher.projects` table, such as:

- `id`
- `status`
- `publisher_id`
- `projecttype`
- `title`
- `url`
- `channel_id`
- `hidden`

**Example of a GET request with filters:**

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-77 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-bash" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_0cd486157c1bdb22&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_46956f5b43d8370f&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-77 ng-star-inserted"><span class="ng-tns-c1630465722-77">Bash</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-77 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-77 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-77 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-77"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-77"></div></div></div>

```
curl -X GET -H "Content-Type: application/json" -H "X-Network-ID: -1" -H "X-Auth-Token: ADMIN_APIUSER_TOKEN" -H "X-Auth-ID: ADMIN_APIUSER_LOGIN_ID" "https://SUBDOMAIN.de/ws/V6/admin/JSON/Projects?status=1&publisher_id=10"

```

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-77 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--2" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_0cd486157c1bdb22&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_46956f5b43d8370f&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-77"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-77"></div></div></div>---

### CRUD Operations

#### GET: Retrieve Projects

Retrieve a list of projects or a specific project by its `id`.

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-78 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-bash-1" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_0cd486157c1bdb22&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_46956f5b43d8370f&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-78 ng-star-inserted"><span class="ng-tns-c1630465722-78">Bash</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-78 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-78 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-78 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-78"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-78"></div></div></div>

```
curl -X GET -H "Content-Type: application/json" -H "X-Network-ID: -1" -H "X-Auth-Token: ADMIN_APIUSER_TOKEN" -H "X-Auth-ID: ADMIN_APIUSER_LOGIN_ID" "https://SUBDOMAIN.de/ws/V6/admin/JSON/Projects?id=5"

```

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-78 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--6" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_0cd486157c1bdb22&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_46956f5b43d8370f&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-78"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-78"></div></div></div>#### POST: Create a New Project

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-79 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-bash-2" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_0cd486157c1bdb22&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_46956f5b43d8370f&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-79 ng-star-inserted"><span class="ng-tns-c1630465722-79">Bash</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-79 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-79 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-79 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-79"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-79"></div></div></div>

```
curl -X POST -H "Content-Type: application/json" -H "X-Network-ID: -1" -H "X-Auth-Token: ADMIN_APIUSER_TOKEN" -H "X-Auth-ID: ADMIN_APIUSER_LOGIN_ID" -d '{
  "title": "New Project",
  "status": 1,
  "url": "https://example.com"
}' "https://SUBDOMAIN.de/ws/V6/admin/JSON/Projects"

```

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-79 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--9" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_0cd486157c1bdb22&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_46956f5b43d8370f&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-79"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-79"></div></div></div>#### PUT: Update an Existing Project

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-80 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-bash-3" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_0cd486157c1bdb22&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_46956f5b43d8370f&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-80 ng-star-inserted"><span class="ng-tns-c1630465722-80">Bash</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-80 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-80 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-80 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-80"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-80"></div></div></div>

```
curl -X PUT -H "Content-Type: application/json" -H "X-Network-ID: -1" -H "X-Auth-Token: ADMIN_APIUSER_TOKEN" -H "X-Auth-ID: ADMIN_APIUSER_LOGIN_ID" -d '{
  "id": 5,
  "title": "Modified Project",
  "status": 2,
  "url": "https://updated-example.com"
}' "https://SUBDOMAIN.de/ws/V6/admin/JSON/Projects"

```

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-80 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--12" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_0cd486157c1bdb22&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_46956f5b43d8370f&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-80"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-80"></div></div></div>#### DELETE: Delete a Project

Delete a project by its `id`.

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-81 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-bash-4" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_0cd486157c1bdb22&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_46956f5b43d8370f&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-81 ng-star-inserted"><span class="ng-tns-c1630465722-81">Bash</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-81 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-81 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-81 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-81"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-81"></div></div></div>

```
curl -X DELETE -H "Content-Type: application/json" -H "X-Network-ID: -1" -H "X-Auth-Token: ADMIN_APIUSER_TOKEN" -H "X-Auth-ID: ADMIN_APIUSER_LOGIN_ID" "https://SUBDOMAIN.de/ws/V6/admin/JSON/Projects?id=5"

```

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-81 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--15" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_0cd486157c1bdb22&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_46956f5b43d8370f&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-81"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-81"></div></div></div>---

### Responses

#### Successful Response

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-82 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-json" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_0cd486157c1bdb22&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_46956f5b43d8370f&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-82 ng-star-inserted"><span class="ng-tns-c1630465722-82">JSON</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-82 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-82 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-82 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-82"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-82"></div></div></div>

```
{
  "id": 5,
  "status": 1,
  "publisher_id": 10,
  "projecttype": "page",
  "title": "Project Example",
  "description": "Description of the project",
  "url": "https://example.com",
  "channel_id": 2,
  "project_identifier_string": "abc123",
  "reach": "1000",
  "statistic_type": "internal",
  "external_sources_entity_id": "-1",
  "trackingtemplate": "template",
  "kpi_whitelist": "kpi1,kpi2",
  "hidden": false,
  "login_type": "pub",
  "exclude_from_salary": 0,
  "default_project": false,
  "insert_timestamp": "2025-01-27T12:00:00"
}

```

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-82 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--19" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_0cd486157c1bdb22&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_46956f5b43d8370f&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-82"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-82"></div></div></div>#### Bad Request

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-83 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-json-1" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_0cd486157c1bdb22&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_46956f5b43d8370f&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-83 ng-star-inserted"><span class="ng-tns-c1630465722-83">JSON</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-83 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-83 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-83 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-83"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-83"></div></div></div>

```
{
  "error": "Missing required field: title"
}

```

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-83 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--22" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_0cd486157c1bdb22&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_46956f5b43d8370f&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-83"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-83"></div></div></div>---

### 📘 Error Handling Notes

- If mandatory fields (`title`, `status`, `url`) are missing, an appropriate error message will be returned.
- An invalid or non-existent `id` during a **GET**, **PUT**, or **DELETE** request will result in an empty response or an error message.

# Publisher Management via the V6 REST-API

### Introduction

The V6 REST-API allows administrators to create publishers and retrieve their details. This functionality is currently limited to **CREATE** and **READ** operations.

### Endpoint

- **For Admins:** `https://SUBDOMAIN.de/ws/V6/admin/JSON/Publisher`

---

### CRUD Operations

#### POST: Create Publisher (CREATE)

Creates a new publisher and inserts the corresponding data into the `global.logins` and `global.login_settings` tables.

##### Required Parameters:

<table data-path-to-node="12" id="bkmrk-parameter-type-descr"><thead><tr><td>**Parameter**</td><td>**Type**</td><td>**Description**</td></tr></thead><tbody><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;12&#44;1&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;12&#44;1&#44;0&#44;0&#34;&#62;email&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="12,1,1,0">String</span></td><td><span data-path-to-node="12,1,2,0">Mandatory, max. 255 characters</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;12&#44;2&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;12&#44;2&#44;0&#44;0&#34;&#62;salutation&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="12,2,1,0">String</span></td><td><span data-path-to-node="12,2,2,0">Mandatory, values: <code>mr</code> or <code>mrs</code></span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;12&#44;3&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;12&#44;3&#44;0&#44;0&#34;&#62;prename&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="12,3,1,0">String</span></td><td><span data-path-to-node="12,3,2,0">Mandatory, max. 255 characters</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;12&#44;4&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;12&#44;4&#44;0&#44;0&#34;&#62;surname&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="12,4,1,0">String</span></td><td><span data-path-to-node="12,4,2,0">Mandatory, max. 255 characters</span></td></tr></tbody></table>

- **Optional Parameters (Excerpt):** `company`, `street`, `zip`, `city`, `telephone`, `country` (ISO 3166 ALPHA-3), `billing_sepa_iban`, `companytype` (`un` for company or `priv` for private), `language_interface` (Default: `DEU`), etc.

##### Example Request:

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-108 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-bash" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_f981f1f2306930af&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_5a2a41ee6108b36c&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-108 ng-star-inserted"><span class="ng-tns-c1630465722-108">Bash</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-108 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-108 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-108 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-108"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-108"></div></div></div>

```
curl -X POST -H "Content-Type: application/json" -H "X-Network-ID: -1" -H "X-Auth-Token: ADMIN_APIUSER_TOKEN" -H "X-Auth-ID: ADMIN_APIUSER_LOGIN_ID" -d '{
  "email": "max.mustermann@example.com",
  "salutation": "mr",
  "prename": "Max",
  "surname": "Mustermann",
  "company": "Musterfirma",
  "street": "Musterstraße 1",
  "zip": "12345",
  "city": "Musterstadt",
  "country": "DEU",
  "billing_sepa_owner": "Max Mustermann",
  "billing_sepa_iban": "DE12345678901234567890",
  "billing_sepa_bic": "GENODEF1M01",
  "language_interface": "DEU",
  "billing_mode": 1,
  "billing_media": 1,
  "country_billing": "DEU",
  "country_publisher": "DEU",
  "billing_limit": 50
}' "https://SUBDOMAIN.de/ws/V6/admin/JSON/Publisher"

```

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-108 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--2" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_f981f1f2306930af&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_5a2a41ee6108b36c&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-108"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-108"></div></div></div>##### Expected Response:

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-109 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-json" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_f981f1f2306930af&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_5a2a41ee6108b36c&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-109 ng-star-inserted"><span class="ng-tns-c1630465722-109">JSON</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-109 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-109 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-109 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-109"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-109"></div></div></div>

```
{
  "id": 123,
  "name": "Max Mustermann",
  "email": "max.mustermann@example.com"
}

```

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-109 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--5" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_f981f1f2306930af&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_5a2a41ee6108b36c&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-109"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-109"></div></div></div>---

#### GET: Retrieve Publisher (READ)

Returns the details of a specific publisher or a list of publishers.

- **Filter Options:** All fields within the table can be used as filters (e.g., `email`, `status`, `prename`, `surname`).

##### Example Request (Specific ID):

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-110 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-bash-1" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_f981f1f2306930af&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_5a2a41ee6108b36c&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-110 ng-star-inserted"><span class="ng-tns-c1630465722-110">Bash</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-110 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-110 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-110 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-110"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-110"></div></div></div>

```
curl -X GET -H "Content-Type: application/json" -H "X-Network-ID: -1" -H "X-Auth-Token: ADMIN_APIUSER_TOKEN" -H "X-Auth-ID: ADMIN_APIUSER_LOGIN_ID" "https://SUBDOMAIN.de/ws/V6/admin/JSON/Publisher?id=123"

```

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-110 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--9" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_f981f1f2306930af&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_5a2a41ee6108b36c&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-110"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-110"></div></div></div>##### Example Request with Filters:

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-111 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-bash-2" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_f981f1f2306930af&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_5a2a41ee6108b36c&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-111 ng-star-inserted"><span class="ng-tns-c1630465722-111">Bash</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-111 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-111 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-111 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-111"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-111"></div></div></div>

```
curl -X GET -H "Content-Type: application/json" -H "X-Network-ID: -1" -H "X-Auth-Token: ADMIN_APIUSER_TOKEN" -H "X-Auth-ID: ADMIN_APIUSER_LOGIN_ID" "https://SUBDOMAIN.de/ws/V6/admin/JSON/Publisher?status=1&prename=Max"

```

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-111 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--12" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_f981f1f2306930af&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_5a2a41ee6108b36c&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-111"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-111"></div></div></div>---

### Error Handling

##### Missing Required Fields (POST):

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-112 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-json-1" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_f981f1f2306930af&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_5a2a41ee6108b36c&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-112 ng-star-inserted"><span class="ng-tns-c1630465722-112">JSON</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-112 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-112 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-112 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-112"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-112"></div></div></div>

```
{ 
  "error": "Missing required field: email" 
}

```

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-112 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--16" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_f981f1f2306930af&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_5a2a41ee6108b36c&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-112"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-112"></div></div></div>##### Publisher Not Found (GET):

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-113 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-json-2" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_f981f1f2306930af&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_5a2a41ee6108b36c&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-113 ng-star-inserted"><span class="ng-tns-c1630465722-113">JSON</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-113 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-113 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-113 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-113"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-113"></div></div></div>

```
{
  "error": "Publisher not found"
}
```

# Connecting an External API

It is possible to integrate an external API into the system for any external program. These APIs must be activated by our support team. To request activation, please send an email to **support@easy-m.de**. We will then verify whether the API is already available or if it can be newly integrated.

### Preparation

Before you can configure an API for a campaign, the campaign must first be created in the system.

### Execution

To assign an API to a campaign, navigate to the **Campaign Control Center**. From there, proceed to the **"mappings"** section:

[![image.png](https://docs-en.easy-m.de/uploads/images/gallery/2026-05/scaled-1680-/UI4image.png)](https://docs-en.easy-m.de/uploads/images/gallery/2026-05/UI4image.png)

All APIs currently available for the campaign will be displayed there.

[![image.png](https://docs-en.easy-m.de/uploads/images/gallery/2026-05/scaled-1680-/Tcvimage.png)](https://docs-en.easy-m.de/uploads/images/gallery/2026-05/Tcvimage.png)

Finally, click the **"create new mapping"** button to enter the credentials and data required for the API.

### External API Credentials

To communicate with the API of an external service provider, corresponding login or access credentials are required. Where to find these credentials within the provider's respective platforms is explained in the individual integration guides.

# Admedia Webservice

# Admedia API (V6) - POST (Create)

### Einleitung

To create ad media via an automated process rather than manually in the easy.affiliate system, easy Marketing GmbH provides a web service API. For this purpose, each user has an **Authentication Token** and a **Login ID** available, which are provided via the frontend.

- **User ID:** Where is the User ID stored? (See frontend profile)
- **Access Token:** Where is the Access Token stored? (See API settings)

### Endpoints

- **Endpoint for Admin:** `https://SUBDOMAIN.de/ws/V6/admin/JSON/Admedia`
- **Endpoint for Advertiser:** `https://SUBDOMAIN.de/ws/V6/advertiser/JSON/Admedia`

---

### Example with cURL

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-136 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-bash" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_98fea8d792c99e53&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_d6ce4684816cf8e3&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-136 ng-star-inserted"><span class="ng-tns-c1630465722-136">Bash</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-136 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-136 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-136 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-136"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-136"></div></div></div>

```
curl -X POST -H "Content-Type: application/json" -H "X-Network-ID: -1" -H "X-Auth-Token: ADMIN_APIUSER_TOKEN" -H "X-Auth-ID: ADMIN_APIUSER_LOGIN_ID" -d "$EXAMPLE_JSON_DATA" https://DOMAIN/ws/V6/admin/JSON/Admedia

```

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-136 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--2" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_98fea8d792c99e53&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_d6ce4684816cf8e3&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-136"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-136"></div></div></div>### Code Example

Ad media can be created using the following format. An example request looks like this:

**Headers:**

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-137 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-http" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_98fea8d792c99e53&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_d6ce4684816cf8e3&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-137 ng-star-inserted"><span class="ng-tns-c1630465722-137">HTTP</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-137 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-137 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-137 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-137"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-137"></div></div></div>

```
Content-Type: application/json
X-Network-ID: -1
X-Auth-Token: ADMIN_APIUSER_TOKEN
X-Auth-ID: ADMIN_APIUSER_LOGIN_ID

```

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-137 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--5" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_98fea8d792c99e53&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_d6ce4684816cf8e3&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-137"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-137"></div></div></div>**Body:**

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-138 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-json" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_98fea8d792c99e53&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_d6ce4684816cf8e3&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-138 ng-star-inserted"><span class="ng-tns-c1630465722-138">JSON</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-138 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-138 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-138 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-138"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-138"></div></div></div>

```
{
    "campaign_id": 1,
    "project_ids": [50012],
    "title": "Ad Media Title",
    "deeplink": "https://example.de/link",
    "category_id": 5,
    "mediatype": "text",
    "linktext": "Click here",
    "status": 1
}

```

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-138 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--8" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_98fea8d792c99e53&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_d6ce4684816cf8e3&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-138"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-138"></div></div></div>---

### Parameter Explanations

#### Headers

<table data-path-to-node="20" id="bkmrk-variable-meaning-dat"><thead><tr><td>**Variable**</td><td>**Meaning**</td><td>**Data Type**</td></tr></thead><tbody><tr><td><span data-path-to-node="20,1,0,0">**Content-Type**</span></td><td><span data-path-to-node="20,1,1,0">The Content-Type of the request</span></td><td><span data-path-to-node="20,1,2,0">String</span></td></tr><tr><td><span data-path-to-node="20,2,0,0">**X-Network-ID**</span></td><td><span data-path-to-node="20,2,1,0">The client (tenant) ID or <code>&#45;1</code></span></td><td><span data-path-to-node="20,2,2,0">Integer</span></td></tr><tr><td><span data-path-to-node="20,3,0,0">**X-Auth-Token**</span></td><td><span data-path-to-node="20,3,1,0">The API authentication token of the admin user</span></td><td><span data-path-to-node="20,3,2,0">String</span></td></tr><tr><td><span data-path-to-node="20,4,0,0">**X-Auth-ID**</span></td><td><span data-path-to-node="20,4,1,0">The ID of the admin user</span></td><td><span data-path-to-node="20,4,2,0">Integer</span></td></tr></tbody></table>

#### Body

<table data-path-to-node="22" id="bkmrk-parameter-explanatio-1"><thead><tr><td>**Parameter**</td><td>**Explanation**</td><td>**Data Type**</td><td>**Required**</td></tr></thead><tbody><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;22&#44;1&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;22&#44;1&#44;0&#44;0&#34;&#62;campaign&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="22,1,1,0">ID of the campaign</span></td><td><span data-path-to-node="22,1,2,0">Integer</span></td><td><span data-path-to-node="22,1,3,0">Yes</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;22&#44;2&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;22&#44;2&#44;0&#44;0&#34;&#62;project&#95;ids&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="22,2,1,0">Whitelist of project IDs</span></td><td><span data-path-to-node="22,2,2,0">JSON Array</span></td><td><span data-path-to-node="22,2,3,0">No</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;22&#44;3&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;22&#44;3&#44;0&#44;0&#34;&#62;title&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="22,3,1,0">Title of the ad media</span></td><td><span data-path-to-node="22,3,2,0">String</span></td><td><span data-path-to-node="22,3,3,0">Yes</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;22&#44;4&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;22&#44;4&#44;0&#44;0&#34;&#62;deeplink&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="22,4,1,0">Deeplink of the ad media</span></td><td><span data-path-to-node="22,4,2,0">String</span></td><td><span data-path-to-node="22,4,3,0">Yes</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;22&#44;5&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;22&#44;5&#44;0&#44;0&#34;&#62;category&#95;id&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="22,5,1,0">ID of the category</span></td><td><span data-path-to-node="22,5,2,0">Integer</span></td><td><span data-path-to-node="22,5,3,0">Yes</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;22&#44;6&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;22&#44;6&#44;0&#44;0&#34;&#62;click&#95;tracking&#95;getparameter&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="22,6,1,0">Click tracking parameters</span></td><td><span data-path-to-node="22,6,2,0">String</span></td><td><span data-path-to-node="22,6,3,0">No</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;22&#44;7&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;22&#44;7&#44;0&#44;0&#34;&#62;valid&#95;from&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="22,7,1,0">"Valid from" date</span></td><td><span data-path-to-node="22,7,2,0">String</span></td><td><span data-path-to-node="22,7,3,0">No</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;22&#44;8&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;22&#44;8&#44;0&#44;0&#34;&#62;valid&#95;until&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="22,8,1,0">"Valid until" date</span></td><td><span data-path-to-node="22,8,2,0">String</span></td><td><span data-path-to-node="22,8,3,0">No</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;22&#44;9&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;22&#44;9&#44;0&#44;0&#34;&#62;mediatype&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="22,9,1,0">Type of ad media (e.g., <code>text</code>, <code>banner</code>)</span></td><td><span data-path-to-node="22,9,2,0">String</span></td><td><span data-path-to-node="22,9,3,0">Yes</span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;22&#44;10&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;22&#44;10&#44;0&#44;0&#34;&#62;linktext&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="22,10,1,0">Link text</span></td><td><span data-path-to-node="22,10,2,0">String</span></td><td><span data-path-to-node="22,10,3,0">Yes, if type is <code>text</code></span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;22&#44;11&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;22&#44;11&#44;0&#44;0&#34;&#62;imageurl&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="22,11,1,0">Image URL</span></td><td><span data-path-to-node="22,11,2,0">String</span></td><td><span data-path-to-node="22,11,3,0">Yes, if type is <code>banner</code></span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;22&#44;12&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;22&#44;12&#44;0&#44;0&#34;&#62;size&#95;width&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="22,12,1,0">Width of the banner</span></td><td><span data-path-to-node="22,12,2,0">String</span></td><td><span data-path-to-node="22,12,3,0">Yes, if type is <code>banner</code></span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;22&#44;13&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;22&#44;13&#44;0&#44;0&#34;&#62;size&#95;height&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="22,13,1,0">Height of the banner</span></td><td><span data-path-to-node="22,13,2,0">String</span></td><td><span data-path-to-node="22,13,3,0">Yes, if type is <code>banner</code></span></td></tr><tr><td><code>&#60;span data&#45;path&#45;to&#45;node&#61;&#34;22&#44;14&#44;0&#44;0&#34;&#62;&#60;strong data&#45;index&#45;in&#45;node&#61;&#34;0&#34; data&#45;path&#45;to&#45;node&#61;&#34;22&#44;14&#44;0&#44;0&#34;&#62;status&#60;&#47;strong&#62;&#60;&#47;span&#62;</code></td><td><span data-path-to-node="22,14,1,0">Status of the ad media</span></td><td><span data-path-to-node="22,14,2,0">Integer</span></td><td><span data-path-to-node="22,14,3,0">Yes</span></td></tr></tbody></table>

---

### Response

Upon successful creation, the API returns the following information as JSON:

- **Ad Media ID:** `Integer`
- **Ad Media Title:** `String`
- **Ad Media Category:** `String`
- **View Link:** `String`
- **Click Link:** `String`
- **View Link (Shortener):** `String`
- **Click Link (Shortener):** `String`
- **Adcode:** `String`

# Admedia API (V6) - GET (Read)

### Querying Generated Ad Media via the V6 REST-API

To ensure simple and efficient management of generated ad media, the V6 REST-API provides a query function. This feature allows users to retrieve relevant data regarding the ad media and their corresponding tracking links.

### Endpoint

- **For Admins:** `https://SUBDOMAIN.de/ws/V6/admin/JSON/Admedia`

### Required Parameters

- **campaign\_id:** ID of the respective campaign (**Mandatory**)
- **project\_id:** ID of the respective project (Optional)

---

### Example Request with cURL

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-149 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-bash" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_065f91d4ef8af021&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_eaf189623487fc83&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-149 ng-star-inserted"><span class="ng-tns-c1630465722-149">Bash</span><div _ngcontent-ng-c1630465722="" class="buttons ng-tns-c1630465722-149 ng-star-inserted"><button aria-label="Code herunterladen" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger download-button ng-tns-c1630465722-149 mat-unthemed ng-star-inserted"></button><button aria-label="Code kopieren" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-mdc-tooltip-trigger copy-button ng-tns-c1630465722-149 mat-unthemed ng-star-inserted"></button></div></div><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-149"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-149"></div></div></div>

```
curl -X GET -H "Content-Type: application/json" -H "X-Network-ID: -1" -H "X-Auth-Token: ADMIN_APIUSER_TOKEN" -H "X-Auth-ID: ADMIN_APIUSER_LOGIN_ID" https://DOMAIN/ws/V6/admin/JSON/Admedia?campaign_id=1&project_id=50001

```

<div _ngcontent-ng-c1630465722="" class="code-block ng-tns-c1630465722-149 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--2" jslog="223238;track:impression,attention;BardVeMetadataKey:[[&quot;r_065f91d4ef8af021&quot;,&quot;c_5229d7aaa2a28b5d&quot;,null,&quot;rc_eaf189623487fc83&quot;,null,null,&quot;en&quot;,null,1,null,null,1,0]]"><div _ngcontent-ng-c1630465722="" class="formatted-code-block-internal-container ng-tns-c1630465722-149"><div _ngcontent-ng-c1630465722="" class="animated-opacity ng-tns-c1630465722-149"></div></div></div>---

### Expected Response

Upon a successful request, the API returns the following information about the ad media in JSON format:

- **id:** ID of the ad media (`Integer`)
- **title:** Title of the ad media (`String`)
- **campaign\_id:** ID of the assigned campaign (`Integer`)
- **project\_id:** ID of the assigned project (`Integer`, if provided)
- **clicklink:** Click link of the ad media (`String`)
- **viewlink:** View link of the ad media (`String`)
- **adcode:** JavaScript code / HTML code of the tracking link (`String`)

---

### 📘 Error Handling

- If the `campaign_id` is missing or invalid, an appropriate error message will be returned.
- If no data exists for the specified parameters, an empty dataset (array) will be returned.

# Basket Webservice / Update API

### 📝 Introduction

We offer a web service API for the automated processing of shopping carts. This allows for the subsequent adjustment of already existing baskets. For access, each user receives an Access Token and a User ID, which are provided via the frontend.

---

### 🔐 Authentication

The following headers are required to access the API:

<table id="bkmrk-header-description-t"><thead><tr><td>**Header**</td><td>**Description**</td><td>**Type**</td></tr></thead><tbody><tr><td><span>**Content-Type**</span></td><td><span>The Content-Type of the request</span></td><td><span>String</span></td></tr><tr><td><span>**X-Network-ID**</span></td><td><span>Network ID: typically <code>&#45;1</code> for cross-client (multi-tenant) API</span></td><td><span>Integer</span></td></tr><tr><td><span>**X-Auth-Token**</span></td><td><span>Your Access Token (visible in the frontend)</span></td><td><span>String</span></td></tr><tr><td><span>**X-Auth-ID**</span></td><td><span>Your User ID (visible in the frontend)</span></td><td><span>Integer</span></td></tr></tbody></table>

---

### 📩 Endpoints

- **Admin:** `https://SUBDOMAIN.de/ws/V6/admin/JSON/Baskets`
- **Advertiser:** `https://SUBDOMAIN.de/ws/V6/advertiser/JSON/Baskets`

---

### 🧪 Example (cURL)

<div class="code-block ng-tns-c1630465722-162 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-bash"><div class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-162 ng-star-inserted"></div><div class="formatted-code-block-internal-container ng-tns-c1630465722-162"><div class="animated-opacity ng-tns-c1630465722-162"></div></div></div>

```
curl -X PUT -H "Content-Type: application/json" -H "X-Network-ID: -1" -H "X-Auth-Token: AUTH-TOKEN" -H "X-Auth-ID: USER-ID" -d '[{"basket_item_id": 76041, "amount": 2, "status": "0", "additional": {"variable1": "text", "variable2": 1}}]' https://SUB.DOMAIN.DE/ws/V6/admin/JSON/Baskets

```

<div class="code-block ng-tns-c1630465722-162 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--4"><div class="formatted-code-block-internal-container ng-tns-c1630465722-162"><div class="animated-opacity ng-tns-c1630465722-162"></div></div></div>---

### 🧾 Body Parameters

<table id="bkmrk-parameter-descriptio"><thead><tr><td>**Parameter**</td><td>**Description**</td><td>**Data Type**</td><td>**Required**</td></tr></thead><tbody><tr><td><span>**basket\_item\_id**</span></td><td><span>Unique ID of the basket item</span></td><td><span>Integer</span></td><td><span>✅ Yes</span></td></tr><tr><td><span>**amount**</span></td><td><span>Quantity of the basket item</span></td><td><span>Integer</span></td><td><span>No</span></td></tr><tr><td><span>**price**</span></td><td><span>Net price of the basket item</span></td><td><span>Float</span></td><td><span>No</span></td></tr><tr><td><span>**status**</span></td><td><span>Status of the order: <code>0</code> = open, <code>1</code> = confirmed, <code>2</code> = canceled</span></td><td><span>Integer</span></td><td><span>✅ Yes</span></td></tr><tr><td><span>**turnover**</span></td><td><span>Order value in campaign currency</span></td><td><span>Float</span></td><td><span>✅ Yes</span></td></tr><tr><td><span>**additional**</span></td><td><span>Additional information regarding the basket item</span></td><td><span>JSON</span></td><td><span>No</span></td></tr></tbody></table>

---

### Example Request

**Headers:**

<div class="code-block ng-tns-c1630465722-163 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-http"><div class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-163 ng-star-inserted"><span class="ng-tns-c1630465722-163">HTTP</span><div class="buttons ng-tns-c1630465722-163 ng-star-inserted"></div></div><div class="formatted-code-block-internal-container ng-tns-c1630465722-163"><div class="animated-opacity ng-tns-c1630465722-163"></div></div></div>

```
Content-Type: application/json
X-Network-ID: -1
X-Auth-Token: ACCESS-TOKEN
X-Auth-ID: USER-ID

```

<div class="code-block ng-tns-c1630465722-163 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--8"><div class="formatted-code-block-internal-container ng-tns-c1630465722-163"><div class="animated-opacity ng-tns-c1630465722-163"></div></div></div>**Body:**

<div class="code-block ng-tns-c1630465722-164 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk-json"><div class="code-block-decoration header-formatted gds-title-s ng-tns-c1630465722-164 ng-star-inserted"><span class="ng-tns-c1630465722-164">JSON</span><div class="buttons ng-tns-c1630465722-164 ng-star-inserted"></div></div><div class="formatted-code-block-internal-container ng-tns-c1630465722-164"><div class="animated-opacity ng-tns-c1630465722-164"></div></div></div>

```
[
    {
        "basket_item_id": 76041, 
        "amount": 1, 
        "status": "1", 
        "additional": {
            "variable1": "text", 
            "variable2": 1
        }
    }
]
```