#Tailor
1 messages ยท Page 1 of 1 (latest)
Hi ๐ I'm only seeing one customer.subscription.updated event being triggered for your account, and it was generated before the request you shared. Have you taken any action to simulate that type of event since setting up the webhook endpoint?
I have a customer, where I tried to subscribe and unsubscribe. These actions are successful, so the subscription state should change from "active" to "canceled" as far as I understand
Can you share the ID of the Subscription that you used to try to trigger those events?
I hope this is the ID that you're looking for: prod_MT6YYp3HXWex0f
That's the id of a Product, so not quite what I was looking for. Subscription IDs start with sub_.
Looking at recent requests on your account, you seem to be canceling Subscriptions without making any other changes, so I believe it is expected to not be getting customer.subscription.updated events. Instead, your actions are triggering customer.subscription.deleted events, like this one:
https://dashboard.stripe.com/test/events/evt_1M4RKuK8ZNDCJlfOkChZwSEA
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
oh, I see. so I should probably cancel the subscriptions in another way
It'd probably be a better test if you updated the Subscription instead of trying to cancel it, unless you're specifically testing what events are generated when you cancel Subscriptions.
What im trying to do is send confirmation emails to customers when they cancel their subscription
Are you planning to allow your customers to schedule cancelations to occur in the future in addition to allowing them to cancel immediately? Or are you planning to only support one of those flows?
Since its a usage based subscription, I let the customers cancel immediately
okay, I just tried setting the customers subscription from "trialing" to "active" and the endpoint got triggered ๐
so its not working only with the cancellation
Gotcha, if you're doing immediate cancellation, then instead of changing how you cancel you may want to expand the events that your endpoint listens for to include customer.subscription.deleted
Happy to help! Best of luck with your project.
thank you ๐