SellAuth

Analytics

Get Analytics

Retrieves revenue, orders and customers analytics in a given timeframe.

GET
/v1/shops/{shopId}/analytics

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger

The shop ID.

curl -X GET "https://api.sellauth.com/v1/shops/{shopId}/analytics" \
  -H "Authorization: Bearer <token>"

{
  "revenue": 0,
  "orders": 0,
  "revenueChange": 0,
  "ordersChange": 0,
  "customers": 0,
  "customersChange": 0
}

GET
/v1/shops/{shopId}/analytics/graph

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger
curl -X GET "https://api.sellauth.com/v1/shops/{shopId}/analytics/graph" \
  -H "Authorization: Bearer <token>"

{
  "success": false,
  "error": "Shop not found",
  "message": "Shop not found"
}

Get Top Products

Retrieves the top 5 products by revenue.

GET
/v1/shops/{shopId}/analytics/top-products

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger

The shop ID.

curl -X GET "https://api.sellauth.com/v1/shops/{shopId}/analytics/top-products" \
  -H "Authorization: Bearer <token>"

[
  {
    "product_id": 762,
    "variant_id": 1368,
    "product_name": "My Product",
    "variant_name": "My Variant",
    "total_revenue_usd": 0.9,
    "total_orders": 1
  },
  {
    "product_id": 763,
    "variant_id": 1369,
    "product_name": "My Addon",
    "variant_name": "My Addon",
    "total_revenue_usd": 0.45,
    "total_orders": 1
  }
]

Get Top Customers

Retrieves the top 5 customers by revenue.

GET
/v1/shops/{shopId}/analytics/top-customers

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger

The shop ID.

curl -X GET "https://api.sellauth.com/v1/shops/{shopId}/analytics/top-customers" \
  -H "Authorization: Bearer <token>"

[
  {
    "email": "my@customer.com",
    "discord_id": null,
    "discord_username": null,
    "total_completed": 1,
    "total_spent_usd": "1.35",
    "last_completed_at": "2025-07-27 18:04:28",
    "newsletter_at": null,
    "$id": 240
  }
]