#RicoSwann

1 messages ยท Page 1 of 1 (latest)

supple roostBOT
green shard
#

Hi ๐Ÿ‘‹

You want to know what Customers or Accounts are associated with the Payout?

echo berry
#

Yes. I need to get the Stripe Account Id.

#

I should say the AccountId of the Connect Account, not the main account.

green shard
#

How are you getting the payout data?

echo berry
#

Via webhooks.

green shard
#

Can you share a webhook event ID? They start with evt_

echo berry
#

I don't have a specific one...I'm writing the system right now, so I'm trying to figure out how that would be accomplished.

green shard
#

Okay so this is a Connect webhook event,

echo berry
#

Yess

green shard
#

The Event object itself will include the Account property if it is for a Connect Account

echo berry
#

It's not though, because we're using the "Custom Account" approach, which doesn't include that

green shard
#

What event are you referring to?

#

The Event object for the event payout.paid on all Connect Accounts should include the account parameter on the Event object

echo berry
#

Payout.Created

#

But the others as well like Payout.Paid

#

They all return a payout object. But the payout object doesn't include the account Id.

green shard
#

Can you share an event ID/

#

?

#

I'm not talking about the payout object

#

Just the Event object

echo berry
#

No, as I mentioned, I'm trying to figure out how to code this. I don't have any events yet.

#

With most of the Custom Account flow events, the events come from the primary account, not the Connect Account. But I guess it's possible that because the payout is coming from the Connect Account, it will have the account metadata included. I'll try that and see if it works.

green shard
#

A payout for a Connect Account occurs on that Account and will have the account parameter

echo berry
#

OK, perfect, that's what I needed, thanks

green shard
#

Happy to help ๐Ÿ™‚