#S60-subscriptions
1 messages · Page 1 of 1 (latest)
Elloo!
Can't you use the webhook event invoice.paid? https://stripe.com/docs/api/events/types#event_types-invoice.paid
yes, but won't this trigger for any invoice paid?
I would use this, if there would be a way to filter in the 2nd / 3rd / 4th / 5th invoices of the subscription.
So you only want the second invoice?
so...the reason why I actually want the invoice is that sometimes people may use coupon / discount codes and I need to have this reflected in a secondary invoice system
I would still recommend to listen to invoice.paid, and then keep track on your end if it's the first, second, or third invoice.
Otherwise you can list all invoices for a specific subscription, and then filter the results to only keep the second one: https://stripe.com/docs/api/invoices/list