Create a segment where a custom date field is older than 90 days

Hi there,

 

I am working on an integration and would like to auto-create some segments for our users. Some segments will be based on dates within custom fields.

 

For example:

- Customers who have made a purchase in the past 30/60/90 days.

- Customers who have made a purchase more than 30/60/90 days ago.

 

The first one seems possible using something like this:

 

"name": "Made a purchase in last 90 days",
"segment_criteria": [
    "version": "1.0.0",
    "criteria": [
        "type": "and",
        "group": [
            [
                "source": "contact",
                "custom_field": "wylie_last_purchase",
                "op": "contains-any",
                "const_date_value": "last-n-days",
                "date_param": "90",
            ]
        ]
    ]
]​

 

However I am not sure how to do the second one. Is there an operator that does the opposite of "contains-any" for dates?
 
3 replies
Webinar

Is your small business or nonprofit losing time and engagement to outdated or confusing social media advice? April 23, 2026 2:00 pm ET

Popular Posts:

The world's largest virtual email marketing conference. November 12-13th.