How to get a users total spent from REST API?

  • 7 September 2021
  • 1 reply

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

1 reply

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.