#penguin420_
1 messages · Page 1 of 1 (latest)
Hey Karbi!
You can use the API to list all Invoices for a subscription (https://stripe.com/docs/api/invoices/list#list_invoices-subscription) and just grab the most recent 5 from that
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Great cheers!
wait
const invoices = await stripe.invoices.list({
limit: 3,
});
how do i get it for a sub id
You'd pass in the subscription ID in that request
I linked you to the specific parameter you want in the earlier link
ah