Skip to main content
Solved

How to get a users total spent from REST API?

  • 7 September 2021
  • 3 replies
  • 235 views

Forum|alt.badge.img+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

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.

View original
Did this post help you find an answer to your question?

3 replies

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 513 replies
  • Answer
  • September 8, 2021

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.


Forum|alt.badge.img+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?


Forum|alt.badge.img+2
  • New Member
  • 2 replies
  • October 8, 2024

Yes guys, customer total spent field is extremely needed in the api.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings