#nacho_446

1 messages · Page 1 of 1 (latest)

fickle prismBOT
jaunty furnace
#

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?

heady tiger
#

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

jaunty furnace
heady tiger
#

I think plans are like products on stripe ?

jaunty furnace
#

Can you share an example ID of the object you're looking at?

heady tiger
#

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

jaunty furnace
#

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

heady tiger
#

So there’s no way I can get the amount made

jaunty furnace
#

No, there's no API that gets you MRR
You'd calculate it yourself by retrieving relevant objects