#michael - Payout Event
1 messages ยท Page 1 of 1 (latest)
HI ๐
Can you share the request ID for the failed request?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Hmm.. I don't see it in the platform account logs, as I'd expect. I have a sneaking suspicion that I'm using a different API key, which could definitely cause this issue. Give me a few...
No, I'm setting the secret api key that I'd set to StripeConfiguration.ApiKey right before placing the request. Any other thoughts on why the balance transaction list call might not be showing up in my dashboard logs?
Generally that is usually an account token issue. Trying to fetch payouts that don't exist on the account identified by the API key. If you can see the payout in your dashboard then please confirm the API key is also the same as in that dashboard
Although, I just noticed that I was looking at the connected account logs which had the payout api calls logged. In the platform account, I don't see the balance transaction list api called either, though.
Do I need to specify the connected account id in the request options? (I'm developing in .net)
If that is where the record lives then you will need to pass the Stripe Account header in each request
Am I correct in assuming that the Stripe.NET library sends that header information in the RequestOptions object?
Or, could you point me to documentation on setting Stripe Account header? Maybe it will have a .NET example.
Here's an example: https://stripe.com/docs/api/connected_accounts?lang=dotnet
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok, when I specify the connected account id, I get the exception "Balance transaction history can only be filtered on automatic transfers, not manual."
How can I test this quickly if I can only do automated payout schedule?
What API are you requesting?
Quoting my introduction to this request:
Hello, while trying to handle a payout.paid event, I'm looking up the balance transactions (list) to resolve the payout to the source payout intent ids. However, I get an error from Stripe saying "No such payout: 'po_1KtawX4CjcPbzyRNSjVVr8Ma'" even though I'm grabbing it from the payout.paid event. I also see the same payout in my dashboard.
So, in short - balance transaction list. I'm trying to figure out what payment intent ids sourced a payout event.
Allow me to reiterate my question: How can I test this quickly if I can only do automated payout schedule?
https://stripe.com/docs/api/balance_transactions/list?lang=dotnet
Payout: For automatic stripe payouts only.
Set up daily automatic payouts
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 gathered that from the exception message.
That would be my best approach if you want to verify the use of the Balance Transactions List API to match up with specific payouts.
Allow me to reiterate my question: How can I test this quickly if I can only do automated payout schedule?
Otherwise you could use the starting_after and ending_before parameters to filter the transactions
Allow me to reiterate my question: How can I test this quickly if I can only do automated payout schedule?
I'm specifying the payout id in the request. I want to know how I can quickly test in test mode, even though automatic payouts are enabled
Was the payout ID the result of an automatic payout?
No. I'm asking how do I quickly test when the payout is sent when the account is set to an automatic payout schedule.
Am I going to have to wait for an hour, a day, a week, depending on the schedule to test the webhook event for payout.paid?
Or, for that matter, a week because the minimum delay is 7 days?
If you want to receive accelerated payout speeds you can contact Stripe Support, as we discuss here: https://stripe.com/docs/connect/manage-payout-schedule
Are you not Stripe Support?
No
Even accelerated payouts are in the scope of days for international payouts.
Have you tested using the Stripe CLI to trigger fake events?
I need them to correlate to data I have in my database
I am querying balance transactions in response to them, so the API needs to respond accordingly. I'm doing end-to-end testing.
Is it possible to accomplish this with stripe CLI triggers?
Ugh. sorry to get your hopes up. Payout.paid is not a supported event.
Hi there ๐ jumping in as my teammate needs to step away soon. I just wanted to confirm that there is not a way to force an automatic payout in test mode, so to fully test this you will need to wait for time to pass (likely 7 days). But this is a good concern to raise and I'm submitting feedback about this to our teams.
Understood. It's a bummer. Stripe has done such a great job of impressing me. This last mile has been frustrating, though. It is what it is. Thanks for sending notes upstream.