cURL
curl --request GET \ --url https://api.decodahealth.com/dashboard/top-selling-items \ --header 'API-KEY: <api-key>' \ --header 'TENANT: <tenant>'
[ { "id": "<string>", "name": "<string>", "price": 123, "totalQuantity": 123, "numberOfPurchases": 123, "totalRevenue": 123, "averageQuantityPerPurchase": 123, "description": "<string>" } ]
Get top selling items based on the number of times they were purchased. Returns the top items sorted by purchase count.
The tenant you are making this request on behalf of
Your api key
asc
desc
Successful Response