#nacho_446
1 messages · Page 1 of 1 (latest)
We don't have an API that specifically returns the revenue information.
Are you trying to retrieve just the active subscriptions? OR are you trying to retrieve one-time payments too?
I’m trying to retrieve the amount made on a plan
User’s subscription to my plan I want to know how much the plan has made in total
Sorry, what plan exactly?
Are you referring to Plan object?
https://docs.stripe.com/api/plans
Have you tried listing subscriptions and passing the plan ID to price parameter?
https://docs.stripe.com/api/subscriptions/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I think plans are like products on stripe ?
Can you share an example ID of the object you're looking at?
On my dashboard it shows as product, but when I was creating I created a product the pass that product into plan with intervals on the recurring payments
Ok
prod_PRitd1dYleOta6
It’s test mode, the mmr shows the total revenue
Object with plan_ prefix are Plan objects as I shared earlier
https://docs.stripe.com/api/plans
Prices API was introduced to replace the Plans API and is backwards compatible.
So could you trying passing plan_xx ID to List subscriptions API and see if that returns the active subscriptions?
MMR isn't something that the API returns. You'd need to calculate that yourself once you have the active subscriptions
So there’s no way I can get the amount made
No, there's no API that gets you MRR
You'd calculate it yourself by retrieving relevant objects