Event - customer_membership.active.expiring.x.days.in.the.future
This notification event is used to send notifications about upcoming membership subscription expiration.
Event is fired for all the subscriptions, which meet the following criteria:
- subscription is enabled and its expiry date is X days in the future or in the past, as defined in notifications
- OR subscription is disabled and linked billing profile is enabled and its next processing (billing) date is X days in the future or in the past, as defined in notifications
Following attributes are supported for the event:
- Days Interval: Required. Will filter subscriptions, whose expiry date is X days in the future or in the past. Negative value is used for expiry date in the past. Example: -5 to filter subscriptions with expiry date 5 days ago, 3 to filter subscriptions with expiry date 3 days in the future.
- Membership Types: Optional. If selected, only selected membership types will be filtered.
- Memberships: Optional. If selected, only selected memberships will be filtered.
- Billing Profile Linked: Yes/No/Any (default = Yes). If Yes, only subscriptions, which are linked with enabled billing profile, are filtered. If No, only subscriptions, which are not linked with any billing profile or are linked with disabled billing profile, are filtered.
Process: Selected process will be executed with parameters:
- Invoice ID (last not fully paid invoice from the billing profile, which is not in status Cancelled / Refunded) - passed only if subscription is linked with a billing profile.
- Subscription ID
- Customer ID