v3.0
Last updated
Last updated
© Purchasely 2020-2023
We have added new events to the webhook to bring you a deep understanding of your customers behavior and help you trigger powerful automations.
We have separated transactional and marketing events to make access control management as simple as a switch button. Additionally over 20 events are now available to you to track and understand you subscribers lifecycle. We also changed the attributes attached to the events to ease integration and give you more context and understanding of your subscription system.
Transactional events are declaring a subscription start and stop. You shall be using them to store the subscriber state in the database and grant/revoke access to contents or features of your app.
Prior to this version you were using 3 events to control the access:
PURCHASE_VALIDATED
used to grant access
SUBSCRIPTION_RENEWED
used to grant access (after a pause period) or confirm (renewal)
SUBSCRIPTION_EXPIRED
used to revoke access
They are replaced by 2 simple events:
ACTIVATE
use to grant access immediately (will be triggered at each renewal)
DEACTIVATE
use to revoke access immediately
PURCHASE_VALIDATED
and SUBSCRIPTION_EXPIRED
will no longer be triggered. SUBSCRIPTION_RENEWED
must only be used for marketing purposes.
If you want to keep track of the start and end of a subscription (e.g. for your analytics or CRM) you can use SUBSCRIPTION_STARTED
and SUBSCRIPTION_TERMINATED
. Once again, you must not use them to handle access control as there might be other subscription terminated events such as SUBSCRIPTION_REFUNDED_REVOKED
.
Learn more and find the full list of events here.
Event attributes give you deep context about the subscription such as plan, product, store, country, currency...
Prior to this version we provided a structure with nested attributes like:
This structure has been flattened to ease integration and match what we sent to third parties tools (Braze, Amplitude...).
Learn more and find the full list of attributes here.
If you have any question reach us on our help center .