Hi, I’m confused about what should the webhook type be in the following 2 cases:
- I canceled my subscription or my subscription expired, then after several months I purchase it again in the app.
- 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 codyView original
This is considered a
If the Platinum subscription is in the same Subscription Group (Apple), just a different tier, this is a
PRODUCT_CHANGEevent. 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_CHANGEevent will be sent. If you don’t provide
UpgradeInfo, a new subscription will be started and
INITIAL_PURCHASEwill be sent.
@cody , what is the entitlement `purchase_date` for the first case then? Will it be the first time user purchased it?
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