#Shimri
1 messages · Page 1 of 1 (latest)
hi! the most obvious way I can think of would be to look at the attempt_count of the last invoice of the subscription when handling the customer.subscription.deleted event and see if it's high enough to indicate that the invoice was being retried (https://stripe.com/docs/api/invoices/object#invoice_object-attempt_count)
Thanks for getting back to me so quickly.
The Invoice object does not exist in the Subscription object, so I guess I need to fetch the subscription invoice to get the attempts counter.
there's a latest_invoice field on the Subscription object yes
cool