#uh oh
1 messages ยท Page 1 of 1 (latest)
Hi ๐ can you elaborate?
When creating Subscriptions for Connect scenarios you typically need to already know the ID of the Connected Account, unless you're creating Subscriptions directly on your Platform account with no association to a Connected Account in which case we wouldn't have any insight into what Connected Account you want to associate the Subscription with.
Hi, so I am creating a subscription with a Connect account. Then I am catching it with the webhook customer.subscription.create
I am wondering if there is a way for me to retrieve the Stripe Connect Account ID with the event.data.object caught by that webhook
Ah gotcha, there is an indicator for what Account the Event came from (only for Connect webhooks) in the event.account field:
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.
Thanks! But I was wondering if that could also be accessed from the subscription object thrown in the webhook I mentioned above?
No, Subscription objects do not contain an account field.
okay, thanks !
Any time!