#iRaySpace - BWML-subscription-latest-invoice
1 messages ยท Page 1 of 1 (latest)
Hey. Without the invoice ID, you can use the invoice list API and pass the subscription ID using the subscription parameter: https://stripe.com/docs/api/invoices/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Nice, let me try! Thank you ๐
Np!
Is there a way to expand the invoices inside the list? Or I have to iterate over it?
Hmm, what do you mean? You should have an array of full Invoice objects
I want to expand the payment_intent of the invoices.
Yep that field is expandable: https://stripe.com/docs/api/invoices/object#invoice_object-payment_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ohh, just realized. I have to put data. before the payment_intent.
Anyway, thank you. You may close this thread.
Np!