#dbjpanda

1 messages · Page 1 of 1 (latest)

jaunty edgeBOT
karmic kestrel
#

Hi 👋

We don't keep an exhaustive list but anything that changes the Subscription object in Stripe will trigger this event.

flint crypt
#

Well, how can I distinguish if a subscription is upgrading or downgrading or renewing

karmic kestrel
#

Renewal doesn't trigger an update to the Subscription. It will trigger an invoice.created event though. As for upgrade/downgrade, the Event and the Subscription object it contains will include a previous_attributes hash showing you what properties changed and what their previous value was.

#

I recommend using the Stripe CLI to generate and listen for some of these events so you can get an idea of the data we provide.

flint crypt
#

I am already using the stripe cli and test clock to check if renewal triggers customer.subscription.updated . In my case it does

#

can you confirm it?

karmic kestrel
#

Wait, yes because that will change the latest_invoice property on the Subscription

flint crypt
#

Can I atleast check any parmenter if payment is successful from customer.subscription.updated

karmic kestrel
#

I'm sorry but that sentence is unclear to me. What are you trying to verify and which webhook event are you looking at?

flint crypt
#

Which field should I check on customer.subscription.updated event to know if customer has paid successfully.