Resellers

Aggregate stats for the shop's reseller program, with 30-day deltas.

get/v1/shops/{shopId}/resellers/stats

Request

Response

total_resellersinteger
active_resellersinteger
inactive_resellersinteger
new_resellersinteger
pending_applicationsinteger
revenue_usdnumber
revenue_usd_previousinteger
revenue_usd_all_timenumber
orders_all_timeinteger
window_daysinteger

Example response

{
  "total_resellers": 2,
  "active_resellers": 2,
  "inactive_resellers": 0,
  "new_resellers": 2,
  "pending_applications": 0,
  "revenue_usd": 14.99,
  "revenue_usd_previous": 0,
  "revenue_usd_all_time": 14.99,
  "orders_all_time": 2,
  "top_performers": [
    {
      "id": 1,
      "email": "customer@sellauth.test",
      "shop_id": 1,
      "balance": "100.00",
      "reseller_status": "approved",
      "reseller_tier_id": null,
      "reseller_applied_at": null,
      "reseller_approved_at": "2026-11-01T20:00:51.000000Z",
      "reseller_total_spent_usd": 0,
      "reseller_total_completed": 0,
      "created_at": "2026-11-01T20:00:51.000000Z",
      "reseller_tier": null
    },
    {
      "id": 3,
      "email": "reseller@sellauth.test",
      "shop_id": 1,
      "balance": "100.00",
      "reseller_status": "approved",
      "reseller_tier_id": null,
      "reseller_applied_at": null,
      "reseller_approved_at": "2026-11-01T20:00:51.000000Z",
      "reseller_total_spent_usd": 0,
      "reseller_total_completed": 0,
      "created_at": "2026-11-01T20:00:51.000000Z",
      "reseller_tier": null
    }
  ],
  "window_days": 30
}

Changes

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response's property type changed from integer to number for status

    • breaking

      the response's property type changed from integer to number for status