#kasturi-more_api
1 messages · Page 1 of 1 (latest)
đź‘‹ Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1364693572712009810
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- kasturi-more_api, 3 minutes ago, 11 messages
- kasturi-more_api, 1 day ago, 35 messages
yes
Gotcha well then you already know the Connected Account ID as you have to pass it via the Stripe Account Header to make this request to begin with.
So yeah, it is expected that you wouldn't see the account ID in the response.
no. We are calling List Payouts with client type - test/live and created after param. So we would like to get accounts related to payouts in the response
Can you show me the relevant code here?
request -
stripeClientType is not a paramter that our API accepts
Also this is not your code -- this is a third party tool
response -
request on BE - iter := s.stripeClient.Payouts(ctx).List(params)
with following settings -
pcontext.WithRequestContext("test/live")
params.AddExpand("data.destination")
Ah okay so this is also a bit different. See: https://docs.stripe.com/api/external_account_bank_accounts/object#account_bank_account_object-account
That is only returned for custom Connected Accounts. Is that true here of this Connected Account?
Can you give me that payout ID in text? Then I can also check on that.
po_1RGxI9HFzwE4pTgec2szW5e9
Hmm that payout appears to be on your platform account, no?
Which aligns with the code you shared as you aren't using SetStripeAccount (https://docs.stripe.com/api/connected-accounts?lang=go) to list on a Connected Account
Could you please elaborate it more?
We're implementing a payouts feature where we need to store payout data on our end. To support this, we’d like to establish a mapping between accounts on the Weave side and corresponding accounts on the stripe end
Okay and when you say "between accounts on the Weave side" you mean your Connected Accounts?
Or do you have multiple of your own accounts that you use directly
Okay well to actually list payouts on a Connected Account you need to pass the Connected Account ID in the Stripe Account header, see: https://stripe.com/docs/connect/authentication
Otherwise you are just listing payouts on your own account.
Okay, I think I may not be explaining my requirements clearly.
What we're trying to achieve is this: when a client type is provided in the request, we want to retrieve all the payouts created for that client type. Additionally, we’d like the response to include the account information—that is, the customer account to which the payout was sent.
That is the same thing you said previously and my same answer holds. If you want to see the payouts sent to your Connected Accounts then you list them using the Connected Account ID. There is no API that just "lists all of my payouts sent to all of my Connected Accounts".
what about getting an accountID using bank_account?
or any other way we can link it?
Why do you need to link it? It is linked by the requirement that you must use the Connected Account ID to retrieve a Connected Account's external accounts or payouts or do anything on their account.
If you really wanted to then you could set metadata with the account ID
But that really makes no sense to me why you would want to do that.
We can't set metadata since we only support automatic payouts at this moment.
You can still update a payout's metadata after it is created: https://docs.stripe.com/api/payouts/update#update_payout-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.