#solbass_webhooks
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1331311836867461171
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! The only Event we have for balance changes is balance.available, and that Event is only triggered when the balance in question increases: https://docs.stripe.com/api/events/types#event_types-balance.available
does it get fired when this updates?
and does it work for connected accounts that are business accounts?
and will it work if the transaction is pending?
It will fire for connected accounts when their balance increases, yeah, but not when it decreases. It will fire for pending changes. Note that you need to listen for Events from connected accounts with a Connect Webhook Endpoint: https://docs.stripe.com/connect/webhooks
so how would i know when it decreases?
also i set it up but im only getting events for regaular connected accounts not business type connected accounts
I'm not sure what you mean by "business type connected accounts", can you provide more details or an example?
We don't fire any Event for balance reductions. You would need to use another approach for that, such as polling the API periodically.
when i create the stripe account through the api, i attach this business_type: 'company',
and then i transfer funds from my stripe account to a business connected account, no webhook gets fired
The business_type should have absolutely no impact on these Events or you listening for them. Can you give me the ID of a balance.available Event on one of these connected accounts that you expected to receive but didn't? It's the ID starting with evt_.
i don't see an event id but here is the conneected account id acct_1QcDQGP1scqCFHNQ
Are you trying to do this in test mode or live mode?
There's only been a single balance.available Event on that account in live mode, and it happened many days before you created that Webhook Endpoint.
If you retrieve the balance of that connected account from the API do you see the values you expect? https://docs.stripe.com/api/balance/balance_retrieve
Screenshots from the Dashboard are not ideal. If you want to point me to something specific please provide the Stripe ID.
For example, can you give me the Payment Intent ID for that?
sorry
pi_3QjliN1JNZVKcgEN0TO51DXd
Also, it might help me more if you could explain what your ultimate goal is? Why do you want the balance info?
Now i'm starting to realize a pending transaction does not update the connected accounts balance even if the transfer destination is set up
I allow companies to deposit money into their connected account to pay out independent contractors
Can you tell me more? I still don't understand why you need the balance info? Are you trying to display it somewhere? Are you trying to trigger some kind of process when something happens to the balance? Something else?
Heres' the full run down, a company signs up on my website, sets up a connected account, they deposit $1000 into their 'balance' (which is me setting up a payment intent with a transfer destination to their connected account), now on my webstie i show them 'it's time to pay this person, you have $1000 to pay them' so i want to show them thier balance, and also update their balance after they pay them (if they need to pay someone $300, their balance becomes $700)