Skip to main content
Solved

How to handle cancellation, then quick uncancellation?

  • 25 December 2021
  • 2 replies
  • 406 views

Forum|alt.badge.img+4

Hello! In the documentation, you mention that the cancellation webhook may be delayed up to 2 hours, but the rest of the webhooks typically deliver within 5-60 seconds.

Let’s say that a user cancels a subscription, but then reenables it before the cancellation webhook gets sent. In that case, what types of webhooks would I get and in what order would they be in?

e.g.

would a cancel → resub result in a renewal → cancellation? Or does RC not send the Renewal, since as far is it knows the sub is still active?

 

 

Best answer by tina

Hey @Jake Shelley 

RevenueCat will send the RENEWAL webhook if the customer ended up renewing their subscription. If a customer cancels the subscription, then reenables it before the CANCELLATION webhook is queued in RevenueCat’s backend, you should just be seeing the UNCANCELLATION webhook. 

If the timing of these webhooks is important to your application, I would recommend setting up Platform Server Notifications. Docs for reference: https://docs.revenuecat.com/docs/server-notifications This will reduce the lag times for webhooks and the app stores will ping RevenueCat directly with any subscription updates.  

View original
Did this post help you find an answer to your question?

2 replies

tina
RevenueCat Staff
Forum|alt.badge.img+10
  • RevenueCat Staff
  • 338 replies
  • Answer
  • December 27, 2021

Hey @Jake Shelley 

RevenueCat will send the RENEWAL webhook if the customer ended up renewing their subscription. If a customer cancels the subscription, then reenables it before the CANCELLATION webhook is queued in RevenueCat’s backend, you should just be seeing the UNCANCELLATION webhook. 

If the timing of these webhooks is important to your application, I would recommend setting up Platform Server Notifications. Docs for reference: https://docs.revenuecat.com/docs/server-notifications This will reduce the lag times for webhooks and the app stores will ping RevenueCat directly with any subscription updates.  


Forum|alt.badge.img+4
  • Author
  • New Member
  • 2 replies
  • December 27, 2021

Thank you Tina! The timing is not important as long as the order is correct, so this is perfect.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings