#dtfk

1 messages · Page 1 of 1 (latest)

magic fableBOT
whole trout
#

HI there 👋 I'm not sure I'm understanding what you're trying to ask, would you mind trying to rephrase your question?

livid pivot
#

Sure

#

So the usual payment workflow is auth, capture & payout

#

When we capture any payment, then the payout takes place, means transferring of payment to bank account

#

However, the payout.created webhook event shows all the sum of payments object

#

Now how do we find a particular payment payout details

whole trout
#

Sorry, I'm still not sure I understand what you're asking. Payments and payouts are not as closely coupled as your wording suggests, they are not one-to-one unless you've built your own payout logic to ensure they are.

If you're using our default automatic payouts, then when a Payout is generated it will pay out all currently available funds in your Stripe balance to your associated external account.

If you are using automatic payouts, then you can pass the ID of a Payout to this endpoint to return all of the Balance Transaction objects that were swept into the Payout:
https://stripe.com/docs/api/balance_transactions/list

livid pivot
#

Thanks for this.
I tried this list all balances with specific payout id but we are not able to find a unique identifier so that we can relate a payment transaction in this list.

Basically we need to implement a functionality in our system that whenever the payment is being transferred to bank account, we need to update our system

whole trout
#

What are you seeing in the source field of the Balance Transactions? I believe that is supposed to map to the object that resulted in funds being moved that created the Balance Transaction object:
https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-source

livid pivot
#

Yeah!

#

So this is the same charge id which we get at the time of charge ?

whole trout
#

I'm not sure what objects you're creating as part of your flow, so I'm not entirely certain but believe it is likely. When you compare the ID in that field, does it match your other records?

livid pivot
#

I need to check it deeply

#

But what I meant is in the source, we are receiving the charge object id?

whole trout
#

Yes, when I list Balance Transactions from my test account, I see the ID of a Charge object if the Balance Transaction is associated with a Charge. It's worth noting though that Balance Transactions are also created for other reasons such as refunds or disputes, so you won't always see a Charge ID in that field.

livid pivot
#

Okay

#

So what's the best way according to you to implement this functionality that whenever a payment is being transferred, in transit, success, failure to the bank account, we get notifications for the same

whole trout
#

You don't easily without switching from automatic payouts to manually controlling payouts. Doing so gives you explicit control over payouts allowing you to decide what payment's funds are included in each Payout, allowing you to track this more easily.

livid pivot
#

There's one more thing can we place a hold on amount in ACH transaction & then charge later?

livid pivot
#

Ok thanks a lot @whole trout for all the info

whole trout
#

Any time!