#vitorleitao_docs
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1260869007330770996
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
Unfortunately, List all payouts method doesn't have a currency filter. You would need to fetch all and filter on your side.
Hey @sly flame thanks for the answer.
This was all I needed to know, since I can deal with the filtering if I have to retrieve all payouts
Thank you
Happy to help.
@sly flame Actually, I think I need a bit more help
I think I was looking at the wrong method
I noticed the payouts that are retrieved, are the one for our stripe account, and not payouts done to our users
Would you be able to point me to the API that allows me to fetch the payouts to our users?
Currently we do this to trigger a Payout to our users
PayoutCreateOptions options = new PayoutCreateOptions
{
Amount = transfer.Amount,
Currency = transfer.CurrencyCode,
};
RequestOptions requestOptions = new RequestOptions();
requestOptions.StripeAccount = transfer.Destination;
PayoutService service = new PayoutService();
return await service.CreateAsync(options, requestOptions);
Your users meaning your Connected accounts?
And by "payouts" you mean Transfers from your Platform balance to their balance, or Payouts from their balance to their bank accounts?
Yes, the connected account
And Payouts just like you said, from their balance to their bank accounts
Ok, got it. You will need to list payouts for each Connected account with stripeAccount header: https://docs.stripe.com/connect/authentication
I think I am reading the documentation wrong, which method should I use from that page to list out the payouts we did to connected accounts?
Or will I need to fetch each account individually and see if they have payouts?
It's the same method you used, you just need to provide the ID of the connected account you want to use instead of your Platform account. Something like this:
var options = new PayoutListOptions { Limit = 3 };
var requestOptions = new RequestOptions
{
StripeAccount = "acct_xxx",
};
var service = new PayoutService();
StripeList<Payout> payouts = service.List(options, requestOptions);
Or will I need to fetch each account individually and see if they have payouts?
Yes, you will have to do it for each account individually
Ahh, I think I see
Perfect, let me try that and see if I get the results I am looking for
Thanks for pointing me in the right direction @sly flame
You're welcome!