#TazI1I-webhook

1 messages · Page 1 of 1 (latest)

long prawn
#

Hello 👋
let me take a look

silver loom
#

Hi

#

my user cancel the plan in the customer portal

long prawn
silver loom
#

Ah ok it's an other event

long prawn
#

yup

silver loom
#

update is just for subscription ?

long prawn
#

not sure I understand the question

silver loom
#

sorry ^^

#

the customer.subscription.update event sends a webhook only when a user subscribes

#

and customer.subscription.delete event sends a webhook only when a user cancel subscribes

long prawn
#

ah no
Actually for a new subscription you'd want to listen to customer.subscription.created
https://stripe.com/docs/api/events/types#event_types-customer.subscription.created

For any changes that happen to a subscription (like upgrade, downgrade or even marking subscription for cancellation at the billing period end etc)
You'd receive customer.subscription.updated

And for cancellation customer.subscription.deleted

silver loom
#

OK

#

if my client does not pay the subscription, 1 month later

#

is customer.subscription.deleted ?

#

sorry i'm french and my english is sooo bad

#

no for this example i received customer.subscription.updated, it's correct ?

long prawn
#

All good
Yup. You'd receive .updated event where subscription status would be past_due

silver loom
#

Ok perfect, thanks you for your help and for your explanations