Affiliates
Affiliate sales
/ v1 / affiliates / sales The commissions of the affiliate partners, newest first. There is one row per paid order or subscription payment and level.
level1: the partner sold it.level2: commission for the partner who recruited the selling partner (source_partner_id). Level 2 rows exist only for sales after the partner was recruited.status:accepted,under_review,paid(paid out),declinedorvoid(the order was refunded).amount: the payment. It is 0.00 after a 100% coupon. The commission is in the same currency.
A fixed commission (see GET /v1/affiliates) does not depend on amount.
Autorisierung
-
Authorizationstring Header erforderlichBearer tnt_…· A personal API key (tnt_...). Create it in the Tentary app on the page AI & API. Einführung
Query-Parameter
-
partner_idintegerOnly this partner (id from list_affiliates).
min.
1Beispiel:900 -
fromstringFirst day (UTC), like 2026-01-01.
Muster
^[0-9]{4}-[0-9]{2}-[0-9]{2}$ -
tostringLast day (UTC).
Muster
^[0-9]{4}-[0-9]{2}-[0-9]{2}$ -
cursorstringnext_cursor of the previous page. Send the same filters and limit again: the cursor does not keep them. Leave out for the first page.
-
limitintegerItems per page, default 25.
min.
1max.50
Antwort
Felder der Antwort mit Status 200. Fehler haben immer dasselbe Format, siehe Fehler.
-
salesarray of objectNewest first.
13 Felder anzeigen Felder ausblenden
-
order_idintegerThe order ID (not the order number).
-
subscription_paymentbooleantrue = a renewal payment of a subscription.
-
datestring<date-time> kann null seinUTC, like 2026-01-31T14:05:00Z.
-
product_idinteger kann null seinThe product ID.
-
product_titlestring kann null seinThe product name.
-
amountstring kann null seinDecimal string, like "19.90". The payment.
-
currencystringCurrency code, like EUR.
-
partner_idintegerThe affiliate partner ID.
-
levelinteger1 = the partner sold it. 2 = commission for the partner who recruited the seller partner.
-
source_partner_idinteger kann null seinLevel 2 only.
-
commissionstring kann null seinDecimal string, like "19.90".
-
statusstringvoid = the order was refunded.
Mögliche Werte:
acceptedunder_reviewpaiddeclinedvoidunknown -
admin_urlstring<uri>The page in the Tentary app.
-
-
next_cursorstring kann null seinSend it as cursor for the next page, with the same filters and limit. null = this is the last page.
-
admin_urlstring<uri>The page in the Tentary app.