#ethan-tran_best-practices
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/1379661286840991805
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- ethan-tran_best-practices, 21 hours ago, 8 messages
Is this event balance.available
by application do you mean application fee?
Yes balance.available could work (recommend to test it in sandbox), but how about application_fee.created ?
yes, that's right
for this event application_fee.created, I can't know when the fee come to available balance of platform account
Now I want to know the exact period, the fee comes to the available balance, then I will do a transfer to another connected account. This make sure my balance has enough money to transfer
This application_fee.created event only let me know when the application fee is created
Yeah you are right. I think balance.available works, but please test it in Sandbox
I just checked the document, event: balance.available not include the source of the money
I can't know the the money is from charge, transfer or application fee
hello, are you still there?
You mean that I need to trigger this api everyday, am I correct?
When you received balance.available
so there will be a lot of records to be listed, how can I optimize the API List balance transaction call
Also, Could you please guide me on how to get list application fee based on balance.available event + API List balance transaction
Let's take a step back. Let's say you received an application_fee.created webhook event, do you see it still not reflected in your Platform balance yet?
yes, that's right. Because we can't be certain the application fee comes to the platform account(it can be refunded or disputed)
But even after it's available on the Platform balance, it can still be refunded anyway
I think the main reason is to make sure my balance has enough money to transfer to a connected account.
Let's say I use the event application_fee.created, then I transfer to a connected account, sometime may balance doesn't have enough money.
Alright I agree. Just curious in practice how long do you see that delay
what do you mean "that delay"
delay between application_fee.created until it is available in your Platform balance
It's about 7 days
let's see this image on dev dashboard
the time of application_fee.created event is Jun 4
I see, and what do you see in the body of balance.available? Could you paste its content here?
{
"object": "balance",
"available": [
{
"amount": 666670,
"currency": "usd",
"source_types": {
"card": 666670
}
}
],
"connect_reserved": [
{
"amount": 0,
"currency": "usd"
}
],
"livemode": false,
"pending": [
{
"amount": 61414,
"currency": "usd",
"source_types": {
"card": 61414
}
}
]
}
here is a sample of balance.available data
it doesn't point to any information on the application fee or sth else
Hi! Taking over from my colleague. Give me a moment to read and catch up!
Sure, you're welcome