#mateob_webhooks

1 messages ยท Page 1 of 1 (latest)

dire quailBOT
#

๐Ÿ‘‹ 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.

sullen elk
#

hi there!

#

you want to know the payments included in a payout to your bank account?

dire quailBOT
onyx bough
#

no, I want to know when the payments impact on my stripe account in available terms

#

and then make the payout

surreal wedge
#

I don't think we have an API endpoint that shows just the charges that have settled

onyx bough
#

this is the flow

  1. the client pay an invoice
  2. that payment will not be available instantly, so I need to wait or listen to when that payment will be available
  3. if so, make the payout
surreal wedge
#

You could use BalanceTransactions API for this though

#

You can use the list endpoint with type charge and check its status

onyx bough
#

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

surreal wedge
onyx bough
#

alr that seems good

#

thank you

surreal wedge
#

NP! ๐Ÿ™‚ Happy to help

onyx bough
#

oh another question

onyx bough
surreal wedge
#

It would update the existing balance transaction status from pending to available

onyx bough
#

so I'll need to filter the transactions gte than the event.created right?

#

to get the transactions for that balance

surreal wedge
#

YUp

onyx bough
#

awesome thank you so much

surreal wedge
#

NP! ๐Ÿ™‚ Happy to help

onyx bough
#

alr another question sorry

surreal wedge
#

Sure

onyx bough
#

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?

surreal wedge
#

For type: charge - there should be the same number, yes