#kamil_payout-upcoming

1 messages ยท Page 1 of 1 (latest)

vapid ledgeBOT
#

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

๐Ÿ“ 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.

runic plover
#

kamil_connect-aggregate

#

@mint swallow that is not something that exists in the API unfortunately. It's a Dashboard-only feature

#

kamil_payout-upcoming

mint swallow
#

hmmm, currently i have only totalEarinings and taking them through

await this.stripeClient.balanceTransactions.list({limit: 100, 
        type: "payment",
        // starting_after: startingAfter
      },{
        stripeAccount: accountId // specify connected account
      });

you think its correct for totalEarinings?

#

and any idea how to receive data for those 1-3 points ?

runic plover
#

not sure I follow. You asked a question where you had 3 points and confirmed you already knew how to solve the first 2 points

mint swallow
#

it was only my opinion and im not sure, becasue you said that its only dashboard-only feature
totalEarinings are additional topic

So you think that will be good if i take this in this way:

  1. Total ballance on the account ---> available balance from balance.retrieve()
  2. Total amount on the way to your bank ----> pending balance
  3. Estimated amount to next payoute ---> Not Supported through stripe api
  4. totalEarinings --> like above

Am I right ?

runic plover
#

#1 -> correct
#2 -> depends what you mean by "on your way" here. If the Payout is already created then no the pending balance doesn't have that amount, it's already deducted from it
#3 -> correct not support
#4 -> I wouldn't look at only payment personally but it depends a lot on your use-cases and what each of those connected accounts do overall. I'd look at all BalanceTransactions personally

mint swallow
#

#2 -> Im mean payouts that are "in delivery" process for onboarding bank account

#

#4 additional info --> onboarding payments going through stripe checkout always

runic plover
#

#4 then yes that seems fine. Honestly if it was me I would track all payments and store this in my own database

#

#3 -> sorry this is super vague unfortunately ๐Ÿ˜ฆ You think of something really specific but I'm not sure what you are referring to. But if the Payout is already created then the amount is not in pending

mint swallow
#

sory, edited #3 to #2

#

mistake sory

#

ok ok

#

thank you for your time, im also confused with this task

runic plover
#

Yeah reconciliation is not easy ๐Ÿ˜ฆ Especially since you can't easily test the "automatic Payouts" behaviour in Test mode

mint swallow
#

i will try to handle some data, maybe to get "Estimated amount to next payoute " i will try calcualte this from date of last payout or something

runic plover
#

yeah that's a possibility. It's just brittle because of various edge-cases ๐Ÿ˜ฆ

mint swallow
#

I see, i dont taking your time more ๐Ÿ˜„ thanks and wish all good!