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

{
  "revenue": 100,
  "orders": 10,
  "revenueChange": 20,
  "ordersChange": 10,
  "customers": 5,
  "customersChange": 15
}

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>"

{
  "message": "No query results for model [App\\Models\\Shop] 1"
}

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

{
  "message": "No query results for model [App\\Models\\Shop] 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
curl -X GET "https://api.sellauth.com/v1/shops/{shopId}/analytics/top-customers" \
  -H "Authorization: Bearer <token>"

{
  "message": "No query results for model [App\\Models\\Shop] 1"
}