#JohnM-charge-succeeded

1 messages · Page 1 of 1 (latest)

lofty compass
sweet summit
#

good morning Toby

lofty compass
#

Hi again 👋 please bear with me while I look into that.

sweet summit
#

no rush...

lofty compass
#

Thank you for your patience, could you clarify how you're identifying that the funds aren't yet available?

sweet summit
#

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

lofty compass
#

Gotcha, do you happen to have the request ID from when you tried to create the transfer?

sweet summit
#

Just got my answer . It is a documentation error.

lofty compass
#

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?

sweet summit
#

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 ?

lofty compass
#

I don't believe so, but let me double check.

sweet summit
#

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

lofty compass
#

What type of payouts will you be using? Automatic or manual?

sweet summit
#

automatic

#

that might be the issue...

lofty compass
sweet summit
#

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

lofty compass
#

It looks that payout resides on your connected account, can you try using the Stripe-Account parameter when you make the request?

sweet summit
#

I did not know there was one..

#

I see no stripe account option on the BalanceTransactionListParams

#

is that the put extra parms option

lofty compass
#

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.

https://stripe.com/docs/api/connected_accounts

sweet summit
#

something like this ...

#

BalanceTransactionListParams params =
BalanceTransactionListParams.builder()
.setPayout("po_1JpNbkQmOWRSFQrsD9JjEmUT")
.setType("charge")
.addExpand("data.source")
.putExtraParam("Stripe-Account","acct_1JmK8sQmOWRSFQrs")
.build();

lofty compass
#

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();```
sweet summit
#

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

junior lotus
#

That is surprising. Do you see it for any other calls? It has been supported in that library for a while

lofty compass
#

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
);```
sweet summit
#

so if I want to see transfers ? Can I set type to transfer ?

junior lotus
#

Correct