Lifecycle events keep coming up in various forums, community or slack etc.
For example, what is the order of all the webhooks?
- install
- app_trial_subscription_started
- app_trial_subscription_ended
- app_subscription_created
- app_subscription_renewed
- app_subscription_cancelled_by_user
- app_subscription_cancelled
- uninstall
This is just an example lifecycle journey.
What happens when subscription renewal payment fails and what are the timings?
- app_subscription_renewal_attempt_failed
- app_subscription_renewal_attempt_failed (attempt 2, after 4 days)
- no webhook (attempt 3, after 4 days)
- no webhook (attempt 4, after 4 days)
- no webhook (attempt 5, after 4 days)
- no webhook (attempt 6, after 4 days)
- no webhook (attempt 7, after 4 days)
- no webhook (attempt 8, after 4 days)
- no webhook (attempt 9, after 4 days)
- no webhook (attempt 10, after 4 days)
- app_subscription_renewal_failed (if first 3 attempts are unsuccessful, 45 days after app_subscription_renewal_attempt_failed)
- app_subscription_cancelled
See also this description with example dates from @rachelatmonday.
Also, what happens if a payment is successfully made at any point in between 1 and 12 above? What’s the next event sent?
I think that this would be best described in a flow diagram and added to the documentation on this page: