Analytics
Get Top Customers
Changed onRetrieves the top 10 customers by revenue.
get/v1/shops/{shopId}/analytics/top-customers
Request
- Base URLhttps://api.sellauth.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
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
- info