#RayAndré-subscription-webhook
1 messages · Page 1 of 1 (latest)
Umm I think so 🤔
Feel free to correct me if I misunderstood
So if you listen to just one event customer.subscription.created, it delivers a subscription object that has the customer listed on it.
By default, it only lists the customer ID but the property is expandable [1] so you can expand [2] the customer to retrieve their email address
[1] https://stripe.com/docs/api/subscriptions/object#subscription_object-customer
[2] https://stripe.com/docs/api/expanding_objects?lang=node
unfortunately, you can't configure the endpoint to auto-expand it on delivery
You'd want to retrieve the subscription object using the ID
ok so one more round trip to Stripe...at least that's better than the settimeout 😅
thanks hanzo
NP! 🙂 Happy to help