#Ritchie
1 messages · Page 1 of 1 (latest)
You will want to check the billing_reason, I think for updates you will see a reason of subscription_update but for a regular cycle it will be subscription_cycle https://stripe.com/docs/api/invoices/object#invoice_object-billing_reason
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
If that does not work, I think you can check request.id on the event itself. That field should be populated for updates and empty for a normal cycling. I think billing_reason would be the more direct way to check this though https://stripe.com/docs/api/events/object#event_object-request-id
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Perfect. Thank you!