> ## Documentation Index
> Fetch the complete documentation index at: https://www.notifuse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Win back inactive customers

> Build a segment of customers who bought before but not in the last 90 days, then send them a campaign.

You end with a segment of lapsed customers that updates itself every day, and a broadcast sent to it.

## Before you start

- Your orders reach Notifuse as custom events with `goal_type: "purchase"`. The [abandoned cart guide](https://www.notifuse.com/docs/guides/abandoned-cart.md#set-up-cart-recovery) shows the call.
- An API key with **Contacts write**, if you still have past orders to send.
- A list your customers are on. A broadcast always goes to a list, and the segment narrows it.

Contacts have no built-in lifetime value or order count fields. Recency, frequency and spend all come from purchase goals, so the segment only knows about orders you have sent as goals.

## Build the segment and send the campaign

### 1. Send your past orders

A customer who last bought eight months ago only shows up as lapsed if Notifuse has that order. Send your order history through `POST /api/customEvents.import`, up to 50 events per call, with each order's real date in `occurred_at`:

```json
{
  "workspace_id": "YOUR_WORKSPACE_ID",
  "events": [
    {
      "external_id": "order_0871",
      "email": "jane@example.com",
      "event_name": "order.completed",
      "occurred_at": "2026-03-14T10:22:00Z",
      "goal_type": "purchase",
      "goal_value": 120.0
    }
  ]
}
```

`goal_value` is required for purchases.

A refund can be sent as a purchase with a negative `goal_value`, under its own `event_name` such as `order.refunded`. It lowers the customer's **total**, but it also counts as one more purchase in a **count** condition. If you send refunds this way, type `order.completed` in the event field of **Narrowed to** on your count conditions.

### 2. Create the segment

In the Contacts rail, click **New segment** and name it, for example "Lapsed customers". Keep **Contacts matching** set to **all** of the following conditions.

Click **Condition**, choose **Goal**, and add these two:

1. **The contact** **has reached** **Purchase**, **Measure** **count** **greater than or equal to** 1, **When** **anytime**. This keeps people who bought at least once.
2. **The contact** **has not reached** **Purchase**, **Measure** **count** **greater than or equal to** 1, **When** **in the last** 90 **days**. This keeps people with no order in the last 90 days.

You need both. **has not reached** also matches contacts who never bought anything, so the second condition alone would catch every non-buyer.

Click **Confirm** after each condition.

![A segment built from two Goal conditions on Purchase, joined by all](https://www.notifuse.com/docs/assets/screenshots/segment_goals.png)

### 3. Keep only your best past customers (optional)

Add a third **Goal** condition to target customers who spent the most: **has reached** **Purchase**, **Measure** **total** **greater than or equal to** 200, **When** **anytime**. **total** adds up `goal_value`.

For frequent buyers, use **count** with a higher value instead, such as 3. The same condition also offers **average**, **minimum** and **maximum**.

### 4. Pick the timezone and create it

Under **Settings**, set **Timezone used for dates**. Click **Create**.

Notifuse computes the segment once, then again every day at 5 AM in that timezone, because "in the last 90 days" moves with the calendar. A customer joins the segment on the morning their last order turns 90 days old, and leaves it once a new purchase is recorded and the segment recomputes.

### 5. Send the campaign

Create a template in the **Marketing** category for the win-back email. Then go to **Broadcasts** and click **New broadcast**.

In **Audience**, pick the **List** your customers are on, then pick your segment in **And in at least one segment**. Only contacts who are on the list and in the segment receive it. Customers who are not on the list are left out.

![The Audience card of a broadcast: the Newsletter list narrowed to a win-back segment](https://www.notifuse.com/docs/assets/screenshots/broadcast_audience_segment.png)

Adding a second segment widens the audience: a contact needs to be in any one of the segments, not all of them. To narrow it further, add the condition to the segment itself.

Send or schedule the broadcast as usual.

## Check that it works

- Once the segment has finished computing, open it from the Contacts rail. The count should match roughly the customers you expect to be lapsed.
- Look up a customer you know bought more than 90 days ago and never since: they should be in the segment. A customer who ordered last week should not.
- Before you send, the **Audience** card shows the estimated number of recipients for the list and segment together.

## Next steps

> [card] [Custom events and goals](https://www.notifuse.com/docs/features/custom-events.md)
>
> Goal types, aggregates and timeframes in detail.

> [card] [Recover abandoned carts](https://www.notifuse.com/docs/guides/abandoned-cart.md)
>
> Use the same purchase goals to follow up on carts.

> [card] [Broadcast campaigns](https://www.notifuse.com/docs/features/broadcast-campaigns.md)
>
> Scheduling, A/B tests and data feeds.
