#agedpeanuts_api

1 messages ยท Page 1 of 1 (latest)

ashen graniteBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

undone solar
#

So that's a payout on a Custom account where you used destination charges (charges that settle on platform and funds are transfered to connect account). This is possible, but it's pretty complicated, since you have to work backwards across a lot of different objects. To do this, you have to use the List BalanceTransactions API and pass the payout parameter to filter all the BalanceTransactions bundled in that specific Payout: https://docs.stripe.com/api/balance_transactions/list#balance_transaction_list-payout. Those balance transactions have a source property: https://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-source. This will be a charge id of the payment made to the connect account (from the transfer). This Charge object on the connected account has the source_transfer property: https://docs.stripe.com/api/charges/object#charge_object-source_transfer which gives the id of the transfer in the platform that created this payment. The Transfer object has the source_transaction property: https://docs.stripe.com/api/transfers/object#transfer_object-source_transaction which gives the id of the charge that created this transfer. You can use the expand feature of our api to get this info in fewer api calls: https://docs.stripe.com/expand

winged cargo
#

Hi there ๐Ÿ‘‹ jumping in as my teammate needs to step away soon. Unfortunately the Payout that you created in that request is a Manual Payout, one you explicitly created rather than one that we (Stripe) automatically generate, so we don't offer insight into what is included in that Payout because your logic controls the amount of the Payout.

hybrid gulch
#

I see, but if it was a scheduled payout like "1st of every month" then it would have been possible?

winged cargo
#

Yes, for Automatic Payouts, the approach described above can be used to see what Stripe bundled in the Payout.

hybrid gulch
#

The reason we create the payout manually is because we want to specify a minimum payout amount. E.g. 50 USD, if the account has less than the minimum, then we check again next month. Is something like that possible with automatic payout?

winged cargo
#

Not yet, but it is something we're looking into building.

hybrid gulch
#

Is it possible to know if a payment intent has been "processed" and is "available to pay out" ? IIndependently from the payout itself

winged cargo
#

Yup, you should be able to look at the Balance Transaction associated with that Payment Intent (find the related Charge object in the intent's latest_charge field, then look at the Balance Transaction in the Charge's balance_transaction field) to determine that. The Balance Transaction's status indicates whether it's available or if it's still pending.

hybrid gulch
#

Awesome. I'm wondering if there is an applicable webhook for this?

winged cargo
#

Hm, not that would notify you of a single Balance Transaction changing status that I'm thinking of offhand. The closest Event type that is coming to mind is the balance.available Event that is generated when an account's available balance is updated:
https://docs.stripe.com/api/events/types#event_types-balance.available

hybrid gulch
#

is the processing time variable? i'm just thinking that a balance.available event could contain multiple payments that happened at the same time

winged cargo
#

Yes, payout speed or settlement timing varies based on the country of the Stripe account accepting the payment, as well as my fluctuate further based on the type of payment method being used for the payment. The timing based on country can be found here:
https://docs.stripe.com/payouts#standard-payout-timing

Set up your bank account to receive payouts.

hybrid gulch
#

I see thanks. But are the balance transactions grouped? so payment intents made around the same time for the same account would show up as a single "balance.available" event?

winged cargo
#

I'm not entirely certain there. I think they do, but I may be mistaken or they may be more nuance there.

#

I'd suggest creating some test payments and see what gets populated for available_on in the Balance Transaction, which is when we estimate the funds will become available.