#JohnM-charge-succeeded
1 messages · Page 1 of 1 (latest)
good morning Toby
Hi again 👋 please bear with me while I look into that.
no rush...
Thank you for your patience, could you clarify how you're identifying that the funds aren't yet available?
when I attempt to do the transfer, I get insufficient funds...
I have an example where on the 25th, I received a webhook for a charge, but the funds available was not on 10/26 at 1:am
Gotcha, do you happen to have the request ID from when you tried to create the transfer?
Just got my answer . It is a documentation error.
I'm glad to hear that you found what you were looking for! If you have the time, would you mind giving us some insight into what it was you found, or how?
Yea, in communication with our Stripe solutions engineer I forwarded the documentation, and he said it was a documentation error. I did not expect to hear back from him this early which is why I posted the question here.
I got another question here for you. Is there a way , when receiving the payout.paid webhook on a connected account, can I get a list of the transfers being paid out ?
I don't believe so, but let me double check.
that would be appreciated. I tried BalanceTransactionCollection using the payout token... but got a message that the payout did not exist even though I got the ID from the webhook
What type of payouts will you be using? Automatic or manual?
So we do have functionality that sounds like what you're looking for, but it only works with automatic payouts.
https://stripe.com/docs/expand/use-cases#charges-in-payout
that would be what I want
yea.. I tried that... and I got the message that the resource did not exist
No such payout: 'po_1JpNbkQmOWRSFQrsD9JjEmUT'; code: resource_missing; request-id: req_jElQ0DaEhiZige
this is the payout token in the webhook
The web hook id was evt_1JpNcFQmOWRSFQrsCy7YZShm
It looks that payout resides on your connected account, can you try using the Stripe-Account parameter when you make the request?
I did not know there was one..
I see no stripe account option on the BalanceTransactionListParams
is that the put extra parms option
It's not listed on each function as it is more of an overarching concept of our APIs. You can specify it on most calls and it tells the system that it should handle the request as though it were made directly by your connected account.
something like this ...
BalanceTransactionListParams params =
BalanceTransactionListParams.builder()
.setPayout("po_1JpNbkQmOWRSFQrsD9JjEmUT")
.setType("charge")
.addExpand("data.source")
.putExtraParam("Stripe-Account","acct_1JmK8sQmOWRSFQrs")
.build();
No, the link provided shows a code sample of it, but it'd be
BalanceTransactionListParams.builder()
.setPayout("po_1JpNbkQmOWRSFQrsD9JjEmUT")
.setType("charge")
.addExpand("data.source")
.setStripeAccount("acct_1JmK8sQmOWRSFQrs")
.build();```
yea.. I don't have that parameter
I am using com.stripe.param.BalanceTransactionListParams
this is in the java sdk
stripe sdk version 20.68.0
I just upgraded to 20.85.0. still don't see it
That is surprising. Do you see it for any other calls? It has been supported in that library for a while
Sorry, it was a typo on my part, can you try
.setStripeAccount("acct_1JmK8sQmOWRSFQrs")
.build();
BalanceTransactionListParams params =
BalanceTransactionListParams.builder()
.setPayout("po_1JpNbkQmOWRSFQrsD9JjEmUT")
.setType("charge")
.addExpand("data.source")
.build();
BalanceTransactionCollection balanceTransactions = BalanceTransaction.list(
params,
requestOptions
);```
so if I want to see transfers ? Can I set type to transfer ?
Correct