#Eran Mizrahi
1 messages · Page 1 of 1 (latest)
Unfortunately not, webhook objects come with all of their fields not expanded. You have to retreive relevant things via the API once you get the event
can u show me how should i call the API to expend
i didn't get it from the doc
using nodejs
Here you have two options, you can either just use the payment method retrieve method https://stripe.com/docs/api/payment_methods/retrieve?lang=node
Or you can retrieve the payment intent and include { expand: ['customer', 'invoice.subscription'], } after the payment intent ID in your get call https://stripe.com/docs/api/expanding_objects?lang=node
thx!