#walalaw

1 messages ยท Page 1 of 1 (latest)

sharp owlBOT
timber moat
#

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.

ocean fossil
#

we are trying to track any Payout object and we want to have an object where each Payout object has a account_id field

timber moat
#

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?

Listen for events on your Stripe account so your integration can automatically trigger reactions.

ocean fossil
#

yes

#

and yes

timber moat
ocean fossil
#

so if a Payout event occurs, the event object would have an account field associated with it

timber moat
#

Correct