Stripe extract items from customer.subscription.created

Hello,
how can I use the function node to extract the array of Items of a Subscription from stripe?

My previous node is the StripeWebhook

Oky i will leave it open for other to see, in case they need to do it there self:

return $item("0").$node["Stripe Trigger"].json["data"]["object"]["items"]["data"].map( item => { return {json: item} })
3 Likes

Hey @Skywrath-Mage!

Thanks for sharing the solution. I will mark it as a solution so that it makes it easy for others!