#civo_balance-transaction-availability
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/1270045199510278194
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
Have you tried listening to the balance.available event? https://docs.stripe.com/api/events/types#event_types-balance.available
Is it linked to a charge/s?
Here is the description from the doc I provided
Occurs whenever your Stripe balance has been updated (e.g., when a charge is available to be paid out). By default, Stripe automatically transfers funds in your balance to your bank account on a daily basis. This event is not fired for negative transactions.
For the Balance Transaction you provided, it is not expected to be available until 8/7 so I would not expect it to have triggered an event yet
As an example, here is the latest balance.available event on that accout:
https://dashboard.stripe.com/events/evt_1PkEgFBHlcEWpgCkeRBpqSav
In this object event unfortunately I can't reconciliate a previous 'pending' balance_transaction
If you are attempting to reconcile individual balance transactions you could wait until you receive the balance.available event and then trigger a polling of Balance Transactions using the List API
https://docs.stripe.com/api/balance_transactions/list
That way you can reduce the polling to only when funds have become available but still get the granularity you want.
You'd still poll the API, but you would only do it when you know something has changed.
Ok this sounds better instead of polling every x hours..
Last question
How reliable is the 'available_on' property in the balance_transaction?
The availability is derived for our own internal processes so it should be very reliable but we do not make any specific guarantee either.
Ok... the very last question now ๐
Why the state of this balance_transaction (txn_3PLfYvBHlcEWpgCk1B8oqsst) is 'available'? The related charge is failed!
The only possible statuses for a Balance Transaction are pending and available. This means the Balance Transaction was created.
Unfortunately I do not have more details on the specifics of this balance transaction. For those you would need to reach out to Support https://support.stripe.com/contact
Ok thank you โค๏ธ
Happy to shed what ๐ก I can ๐