Question

How to get a users total spent from REST API?

  • 7 September 2021
  • 1 reply
  • 19 views

Badge

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


1 reply

Userlevel 2
Badge +6

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.

Reply