Skip to main content
Solved

Question about webhook type


Forum|alt.badge.img+4
  • New Member
  • 3 replies

Hi, I’m confused about what should the webhook type be in the following 2 cases:

  1. I canceled my subscription or my subscription expired, then after several months I purchase it again in the app.
  1. I realized Gold subscription I previously purchased is not enough so I purchased Platinum subscription in the app while my Gold subscription is active.

Best answer by cody

Hey @Wes! 👋

I canceled my subscription or my subscription expired, then after several months I purchase it again in the app.


This is considered a RENEWAL event.

 

I realized Gold subscription I previously purchased is not enough so I purchased Platinum subscription in the app while my Gold subscription is active.


If the Platinum subscription is in the same Subscription Group (Apple), just a different tier, this is a PRODUCT_CHANGE event. If the Platinum subscription is a separate Subscription Group (an entirely different subscription), this would be considered an INITIAL_PURCHASE, and nothing would change with the Gold subscription.

On Android, if you provide UpgradeInfo the other subscription will be replaced with the new subscription and a PRODUCT_CHANGE event will be sent. If you don’t provide UpgradeInfo, a new subscription will be started and INITIAL_PURCHASE will be sent.

View original
Did this post help you find an answer to your question?
This post has been closed for comments

3 replies

cody
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 501 replies
  • Answer
  • August 5, 2021

Hey @Wes! 👋

I canceled my subscription or my subscription expired, then after several months I purchase it again in the app.


This is considered a RENEWAL event.

 

I realized Gold subscription I previously purchased is not enough so I purchased Platinum subscription in the app while my Gold subscription is active.


If the Platinum subscription is in the same Subscription Group (Apple), just a different tier, this is a PRODUCT_CHANGE event. If the Platinum subscription is a separate Subscription Group (an entirely different subscription), this would be considered an INITIAL_PURCHASE, and nothing would change with the Gold subscription.

On Android, if you provide UpgradeInfo the other subscription will be replaced with the new subscription and a PRODUCT_CHANGE event will be sent. If you don’t provide UpgradeInfo, a new subscription will be started and INITIAL_PURCHASE will be sent.


Forum|alt.badge.img+4
  • Author
  • New Member
  • 3 replies
  • August 5, 2021

Thanks @cody , what is the entitlement `purchase_date` for the first case then? Will it be the first time user purchased it?


cody
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 501 replies
  • August 5, 2021

Hey @Wes!

The ‘purchase_date’ is: The ISO 8601 datetime of the latest purchase or renewal.

You can read more about these fields in our API docs here: https://docs.revenuecat.com/reference#subscribers


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