#mhsnawan-connect

1 messages · Page 1 of 1 (latest)

tall egret
#

Hello!

#

What kind of accounts are you working with? And is your goal to get this data through the API or through something else (like reports)?

acoustic mulch
#

I am basically making an App to connect athlete with their fans and it has subscriptions. Fan can subscribe to athlete.
Athlete is connecting their Standard Accounts and it payout directly from fan to athlete without any control of admin.
I need that to be done with API.
I have a graph, I need to show the earnings to athlete filter by month and total earning till now.

tall egret
#

There isn't really a great way to get the total earnings over all time for a connect account through the API - you'd have to retrieve all the balance transactions on the account and add them up yourself.

#

if they have standard accounts, the athletes should have access to all these analytics if they log on to the Stripe dashboard though

acoustic mulch
#

Is there any way to get the analytics data through an API?

acoustic mulch
tall egret
#

But again, there isn't an easy way to get this data through the API.

acoustic mulch
#

Thanks

tall egret
#

No, there isn't a way to get that data through the API right now

wanton pecan
#

@acoustic mulch please ask your question here instead of a new thread

acoustic mulch
#

I have created a plan with recurring payments (subscription) on connected account.
I have initially added a price $10 for it and lets suppose few users have subscribed to $10 plan and after that I have changed the plan price to $20. And it when subscription is renewed would it automatically be renewed to new price or the old price?

wanton pecan
#

all good, just easier as someone new joined and they have come context on your interactions while still ongoing

#

@tall egret I'll take that one

#

When you defined the first $10/month path you create a Price price_ABC (or a Plan if you use a legacy API). You can't change the amount associated with a Price (or a Plan)
What you do is create a new Price (or Plan) and then you start using that new one moving forward for new customers

#

This means that new people are on Price price_123 for $20/month and existing subscriptions/customers are on the price_ABC for $10

acoustic mulch
#

Yeah, exactly by creating a new price and setting it to default.
How would I cater this situation?

#

For the old users. I need them to subscribe to new price.

wanton pecan
#

did what I explain above cover it?

acoustic mulch
#

Let me see

#

Do I need to implement adding schedule to existing subscription only?

wanton pecan
#

it's just a use-case

#

mostly you would read our docs about the schedule feature and decide what fits you best

#

usually it's creating a schedule from an existing subscription and then adding a second phase to trigger the Price change on the next period

acoustic mulch
#

Perfect!

#

Thanks for the help both of you @wanton pecan @tall egret

wanton pecan
acoustic mulch
#

It means alot

wanton pecan
#

but that can cause proration, or you can disable it

#

the schedule approach is cleaner but a bit more complex