Custom Units Expiration & Pending Settings
Learn more how you can set custom expiration and pending setting for the units awarded in the campaign.
Why Customize This
By enabling this option, you can create dynamic expiration or pending dates based on a variety of conditions, ensuring that the campaign's incentives align with strategic business objectives such as encouraging quicker customer spending or rewarding long-term loyalty. These methods let you create urgency or tie expirations to loyalty milestones.
How to Configure

Select effect Add Units
In Override units settings, enable Expiration settings or Pending settings.
Use templates to set expiration (e.g., fixed date, X days from transaction).
Use variables to reference system timestamps, transaction dates, or member attribute dates. The list of available variables depends on the campaign trigger.
Examples
The example: add_days_to_date(executionContext.processedAt, 15)
. The transaction got into the OL on the 1st of Feb, 2024, so the expiration date of the points will be 16.02.2024 (+15).
Transaction document date - e.g
add_days_to_date(transaction.purchasedAt, 5)
.Member custom attribute - points will expire on the date of what’s in the member custom attribute value. (
to_date
- converts the key to date). Example custom attribute:

If you use the variable below, the points will expire on 2025-08-24.

But if you want to add days to the point expiration to the end date of the custom attribute, you can use one of the templates and the following formula:
add_days_to_date(to_date(agg(customer.labels).getLabelValue('subscription_end_date)),6)
. Then the expiration date of points will be on 30.08.2025.e.g. transaction took place at transaction date 2024-03-01 16:30 → formula days: add_days_to_date(transaction.purchasedAt, 3) → points expire at (2024-03-04 16:30)
→ IMPORTANT: it’s not by the end of the day, it’s always the same time as the event/ transaction date
Last updated
Was this helpful?