#andrea-subscription
1 messages · Page 1 of 1 (latest)
Hi! You can compute that yourslef by listing all invoices for a given subscription with https://stripe.com/docs/api/invoices/list
Yes, and they you would need to only count invoices with status paid I guess.
ok, the previous call will return even the invoice status, or i need to do another call to get invoice details?
You could do that in one call. Something like:
$stripe->invoices->all(['subscription' => $sub_id, 'status' => 'paid']);
And it will return all invoices with their details.