#walalaw
1 messages ยท Page 1 of 1 (latest)
Hi ๐ can you elaborate on what you're trying to accomplish?
Payouts that are retrieved via the API will belong to the account that the API key that is used belongs to, unless you're working with Connect and using the stripe-account header/parameter to make requests for your Connected Accounts.
we are trying to track any Payout object and we want to have an object where each Payout object has a account_id field
Payout objects won't have an account field, because they are only accessible from the account that they belong to. You won't be able to retrieve Payouts for other Stripe accounts.
When you say you want to track Payout objects, are you referring to using something like a webhook?
https://stripe.com/docs/webhooks
And just to clarify, is your integration using Stripe Connect?
Gotcha, when using a Connect webhook to listen for Events from your Connected Accounts, the Events will include an account field to indicate which of your Connected Accounts the Event was generated from:
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.
so if a Payout event occurs, the event object would have an account field associated with it
Correct