How to get a users total spent from REST API?

  • 7 September 2021
  • 2 replies

Badge +2

I want to be able to find the sum of the total amount spent among some users. I see that total spent is available in the dashboard, but I don't see it in the rest API. I would really appreciate some suggestions. 


Sondre Sørbye


Best answer by sharif 8 September 2021, 22:56

View original

2 replies

Userlevel 5
Badge +9

A user’s total spent metric isn’t available via our REST API yet but you can get that data using our customer lists feature, which will sum up the total spent of all users in any list that you create. Otherwise you can save the webhooks that RevenueCat sends and keep a running sum of a customer’s total spent.

Userlevel 1
Badge +5

This would be an extremely useful metric to be bale to pull from the API. Any chance of requesting it be added in V2?