Analytics

Get Top Customers

Changed on

Retrieves the top 10 customers by revenue.

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

Request

Response

idinteger
emailstring
discord_idstring nullable
discord_usernamestring nullable
last_completed_atstring nullable
newsletter_atstring nullable
total_spent_usdstring
total_completedinteger

Example response

[
  {
    "id": 1,
    "email": "customer@sellauth.test",
    "discord_id": null,
    "discord_username": null,
    "last_completed_at": null,
    "newsletter_at": null,
    "total_spent_usd": "14.99",
    "total_completed": 2
  },
  {
    "id": 3,
    "email": "reseller@sellauth.test",
    "discord_id": null,
    "discord_username": null,
    "last_completed_at": null,
    "newsletter_at": null,
    "total_spent_usd": "0.00",
    "total_completed": 1
  }
]

Changes

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status