Deutsch DE
API-Referenz
API-Referenz

Affiliates

Affiliate sales

GET / v1 / affiliates / sales

The commissions of the affiliate partners, newest first. There is one row per paid order or subscription payment and level.

  • level 1: the partner sold it.
  • level 2: 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), declined or void (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.

Liest nur MCP-Werkzeug list_affiliate_sales

Autorisierung

  • Authorization string Header erforderlich

    Bearer tnt_… · A personal API key (tnt_...). Create it in the Tentary app on the page AI & API. Einführung

Query-Parameter

  • partner_id integer

    Only this partner (id from list_affiliates).

    min. 1 Beispiel: 900

  • from string

    First day (UTC), like 2026-01-01.

    Muster ^[0-9]{4}-[0-9]{2}-[0-9]{2}$

  • to string

    Last day (UTC).

    Muster ^[0-9]{4}-[0-9]{2}-[0-9]{2}$

  • cursor string

    next_cursor of the previous page. Send the same filters and limit again: the cursor does not keep them. Leave out for the first page.

  • limit integer

    Items per page, default 25.

    min. 1 max. 50

Antwort

Felder der Antwort mit Status 200. Fehler haben immer dasselbe Format, siehe Fehler.

  • sales array of object

    Newest first.

    13 Felder anzeigen Felder ausblenden
    • order_id integer

      The order ID (not the order number).

    • subscription_payment boolean

      true = a renewal payment of a subscription.

    • date string<date-time> kann null sein

      UTC, like 2026-01-31T14:05:00Z.

    • product_id integer kann null sein

      The product ID.

    • product_title string kann null sein

      The product name.

    • amount string kann null sein

      Decimal string, like "19.90". The payment.

    • currency string

      Currency code, like EUR.

    • partner_id integer

      The affiliate partner ID.

    • level integer

      1 = the partner sold it. 2 = commission for the partner who recruited the seller partner.

    • source_partner_id integer kann null sein

      Level 2 only.

    • commission string kann null sein

      Decimal string, like "19.90".

    • status string

      void = the order was refunded.

      Mögliche Werte: acceptedunder_reviewpaiddeclinedvoidunknown

    • admin_url string<uri>

      The page in the Tentary app.

  • next_cursor string kann null sein

    Send it as cursor for the next page, with the same filters and limit. null = this is the last page.

  • admin_url string<uri>

    The page in the Tentary app.

Tippe, um zu suchen.