#Crawl
1 messages ยท Page 1 of 1 (latest)
In the future feel free to ask follow up questions in the same thread you have already open
Even if they are different questions ๐
But yes subscription is a property of the Invoice object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Awesome thanks
Sure thing
Wait
so this would be the code snippet
const invoice = await stripe.invoices.retrieve(paymentIntent.invoice, {
expand: ['lines.data.price.product'],
});
invoice.subscription.id
Well what are you trying to do?
In the above you would get the Subscription ID from invoice.subscription
Yep so then the above looks fine