#fr0smat1c
1 messages · Page 1 of 1 (latest)
Also, for general information, I use Cross-Border payouts
- Have you tried looking at the Payout object using its Id? it should have a status https://stripe.com/docs/api/payouts/object
- You can Revese a Transfer https://stripe.com/docs/api/transfer_reversals/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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 don't have access to the payout object, because I do the transfer first, and Stripe automatically makes the payout on Connected Account itself
So I have only transfer Id and connected account Id
Did you receive any payout.created webhook event?
and payout.failed, payout.paid?
Yeah, I can process them
But I can't link them to a transfer, for example.
So I can see that some payout was not successful, but I can't understand which payout is related to which transfer in my case.
Looked at example of a payout object. How can I understand from it which connected account it belongs to?
The Payout belongs to the account whose the Secret Key is being used
So if you call List Payout on your Secret key, that's your own account's Payout
If you list Payout on a Connected Account, you will need to use Stripe Account Header when calling List Payout API
I understand that.
But my flow is a little different.
There is a main platform, i.e. the main Stripe account that holds the entire balance.
A user on the platform connects a withdrawal method by creating a Stripe Express Connected Account
How can I use the Payout object to find out which Connected Account it belongs to?
Yes but each Express Connected Account still has their own Payouts
That's how Connect works
You can provide some concrete Payout Id and your Platform Account Id, and your Express Connected Account Id. We can verify
Using Stripe Dashboard, I can figure out which account a Payout belongs to.
But if I process the webhook event payout.failed, I can't find out on the server which user or stripe connected account it belongs to?
The event payload will include an account field if it's a Connect event: https://stripe.com/docs/api/events/object#event_object-account
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Oh, okey
I will check this
Thanks
And another one question
How can I quickly testing payout.failed webhook event on Express Connected Account without waiting payout?