#eleanor
1 messages · Page 1 of 1 (latest)
Hi, sorry for the delay!
That could work but it may be more efficient to listen for customer.subscription.created instead
Or you could listen for invoice.paid and inspect the billing_reason on the invoice object
Any invoices that were created as part of a new subscription should have a billing_reason value of subscription_create: https://stripe.com/docs/api/invoices/object#invoice_object-billing_reason
in our experience, customer.subscription.created seems to have status of incomplete, and we were ideally hoping to only track ones where the payment did happen
got it, makes sense
In that case, either invoice.paid or invoice.payment_succeeded should work. I recommend inspecting billing_reason instead, though
thank you! the billing_reason sounds great, I didn't realize that existed. I think that'll solve it! 🙂