#LordGrim
1 messages · Page 1 of 1 (latest)
What do you mean by "invoice along with the payment method details"? Can you give an example?
I want to get all the invoices of the customer along with the payment method (i.e card details) used in the respective invoice.
.
one way is to fetch all invoices, and then fetch the respective paymentIntent.
.
is there a way to avoid two API calls, and get it done in one single call?
I see. When you list all Invoices, you can expands its payment_intent.payment_method
You can learn more about expanding in https://stripe.com/docs/api/expanding_objects
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.