#dtfk
1 messages · Page 1 of 1 (latest)
HI there 👋 I'm not sure I'm understanding what you're trying to ask, would you mind trying to rephrase your question?
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
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
I need to check it deeply
But what I meant is in the source, we are receiving the charge object id?
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.
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
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.
There's one more thing can we place a hold on amount in ACH transaction & then charge later?
No, ACH does not support separate authorizations and captures:
https://stripe.com/docs/payments/place-a-hold-on-a-payment-method#:~:text=Only some payment methods support separate authorisation and capture. Payment methods that support this include%3A cards%2C Afterpay%2C and Klarna. Payment methods that don’t support this include%3A ACH and iDEAL. Read more about payment method integration options.
Ok thanks a lot @whole trout for all the info
Any time!