Solved

RENEWAL webhook not triggered after an upgrade (App Store)

  • 23 December 2021
  • 1 reply
  • 44 views

Badge
  • New Member
  • 0 replies

Hello,

 

We have 3 auto-renewable subscription products setup with a 30 day free introductory offer and we just went live with RevenueCat :)

 

So there is a user who subscribed with the trial and upgraded after a few hours. We received the `PRODUCT_CHANGE` webhook with the correct `new_product_id`. However, we did not receive any webhook afterwards. We expected a `RENEWAL` webhook with the new product id as `product_id` as per the documentation here.

 

Our webhook listener simply listens to all events and then poll the RevenueCat api and update the database at our end for the `product_id` which was sent from the webhook. It is important for our server to be up-to-date as the entitlements are handled by our server.

 

Could someone let me know what can be done in a situation like this?

 

I did happen to see this but not very sure if they are related.

 

Thank you!

icon

Best answer by sundeep 8 January 2022, 01:53

View original

1 reply

Userlevel 3
Badge +8

Hi @sha,

When the RENEWAL event triggers depends on whether the new product is an upgrade, crossgrade, downgrade: https://docs.revenuecat.com/docs/managing-subscriptions#app-store

Are you able to check how you’ve ordered the levels for your subscription group in App Store Connect to confirm the new product is a higher level (an upgrade) from the previous product? Otherwise, it’s possible a renewal wasn’t immediate if it’s a downgrade, or a crossgrade with different product durations (in these cases, renewals happen after the current period ends).

Reply