#ethan-tran_best-practices

1 messages ¡ Page 1 of 1 (latest)

deep parrotBOT
#

👋 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.

frail nymph
#

Is this event balance.available

oblique sequoia
#

by application do you mean application fee?

#

Yes balance.available could work (recommend to test it in sandbox), but how about application_fee.created ?

frail nymph
#

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

oblique sequoia
#

Yeah you are right. I think balance.available works, but please test it in Sandbox

frail nymph
#

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?

oblique sequoia
#

Yes, and sorry.

#

In that case, can you call a List balance transaction API?

frail nymph
#

You mean that I need to trigger this api everyday, am I correct?

oblique sequoia
#

When you received balance.available

frail nymph
#

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

oblique sequoia
#

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?

frail nymph
#

yes, that's right. Because we can't be certain the application fee comes to the platform account(it can be refunded or disputed)

oblique sequoia
#

But even after it's available on the Platform balance, it can still be refunded anyway

frail nymph
#

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.

oblique sequoia
#

Alright I agree. Just curious in practice how long do you see that delay

frail nymph
#

what do you mean "that delay"

oblique sequoia
#

delay between application_fee.created until it is available in your Platform balance

deep parrotBOT
frail nymph
#

It's about 7 days

#

let's see this image on dev dashboard

#

the time of application_fee.created event is Jun 4

oblique sequoia
#

I see, and what do you see in the body of balance.available? Could you paste its content here?

frail nymph
#

{
"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

uneven sedge
#

Hi! Taking over from my colleague. Give me a moment to read and catch up!

frail nymph
#

Sure, you're welcome