#Thomas-Subscription
1 messages · Page 1 of 1 (latest)
Yes, I'm removing the SubscriptionItem corresponding to my product from the subscription
Then you would receive a customer.suscription.updated I believe https://stripe.com/docs/api/events/types?lang=ruby#event_types-customer.subscription.updated
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yes but I receive it the moment I remove the product. I would like to be notified of the removal at the end of the subscription period, but I don't know if it's possible.
well by default the product is removed at the time you make the update API call to remove it. If you're having it happen at the end of the period, you'd be using SubscriptionSchedules to do that, but you will still get customer.subscription.updated event at that point — the current_period_end/current_period_start changes as a new cycle has started, and also the items will have changed if the Schedule has changed them to remove the product
but yeah to be clear the only way to make this automatic is to use Schedules really, not by receiving an event and responding to it