#mhsnawan-connect
1 messages · Page 1 of 1 (latest)
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)?
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.
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
Is there any way to get the analytics data through an API?
Would you please mention an API.
This is what you'll want to look at for listing all balance transactions: https://stripe.com/docs/api/balance_transactions/list
And you'll also want to look at this (https://stripe.com/docs/connect/authentication) for seeing how to make requests for connect accounts
But again, there isn't an easy way to get this data through the API.
Is there any way to get an analytics data through an API?
Thanks
No, there isn't a way to get that data through the API right now
@acoustic mulch please ask your question here instead of a new thread
Oh I am sorry I didn't know that
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?
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
what you can then do is migrate people to the new price, mostly by updating their subscription, usually with a Subscription Schedule until the end of the period https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#upgrading-subscriptions
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.
did what I explain above cover it?
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
Alternatively, you can just update the subscription immediately via https://stripe.com/docs/api/subscriptions/update and change the Price id price_ABC
It means alot