#michael-harvey_webhooks
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/1351249313828966411
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
We include the account in the event. [0]
[0] https://docs.stripe.com/api/events/object#event_object-account
I'm assuming by Merchant you're referring to the Connected Account right?
yes
how do I parse the account?
I mean, can I get an example of the account object?
We have an example in the docs [0]
is it possible to trigger an event using the stripe cli which includes an associated account?
What are looking to achieve? Are you to retrieve an account object once you identified the account from the webhook event you receive?
yes
Best bet is to retrieve the account via the API [0]
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok, but how do i get the account from the event received from the webhook? is it just stripeEvent.account?
where stripeEvent is Stripe.Event?
account is a top-level property of the webhook event so it should be stripeEvent.account
and this will give me the account id? such as acct_1QWpZVR7Vqz3zJ8D
Yes, it should give you the connected account ID [0].
[0] https://docs.stripe.com/connect/webhooks#connect-webhooks
ok, cool!