#mateob_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/1296095137771950111
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
you want to know the payments included in a payout to your bank account?
if so, this is explained here: https://docs.stripe.com/payouts/reconciliation
no, I want to know when the payments impact on my stripe account in available terms
and then make the payout
I don't think we have an API endpoint that shows just the charges that have settled
this is the flow
- the client pay an invoice
- that payment will not be available instantly, so I need to wait or listen to when that payment will be available
- if so, make the payout
You could use BalanceTransactions API for this though
You can use the list endpoint with type charge and check its status
yes I thought that too
like, listen to balance.available
and then list the balance transactions that are available
but how can I know how many transactions get? like, there are transactions that doesn't belongs to the current available balance
You can look at the source for the balance transaction to find the charge that it is associated to..
You'd want to do your own filtering using created timestamp
https://docs.stripe.com/api/balance_transactions/list#balance_transaction_list-created
It will list all charges on your Stripe account otherwise.
NP! ๐ Happy to help
oh another question
when a balance becomes available, it creates a new balance transaction?
It would update the existing balance transaction status from pending to available
so I'll need to filter the transactions gte than the event.created right?
to get the transactions for that balance
YUp
awesome thank you so much
NP! ๐ Happy to help
alr another question sorry
Sure
when the balance becomes available, it updates the balance transaction. Are there the same amount of bal transactions as payments?
like
when a payment is made, it creates a balance transaction?
For type: charge - there should be the same number, yes