For the complete documentation index, see llms.txt. This page is also available as Markdown.

Segments

Grouping members with dynamic and static segments, using them to target campaigns and rewards, and keeping audiences in step with CRM.

A segment is a group of members — "bought in the last 30 days", "VIP list from CRM", "lapsed members". Dynamic segments follow rules and update themselves; static segments are a fixed list you upload. Campaigns and rewards use segments to decide who sees and gets what; your CRM can use them as audiences.

For the Admin Panel side, see Creating segments, Segment conditions and Managing segments.

Who does what

Area
Responsibility

Admin Panel

Dynamic segment conditions; static segment uploads; segment-based visibility and conditions on campaigns and rewards

Integration layer

Sends the data conditions depend on; syncs segment members to CRM if needed

CRM / marketing automation

Supplies lists for static segments; uses segments as audiences

Design decisions

Decision
Options
Recommendation

Who defines the audience

Open Loyalty (dynamic), or CRM (static upload)

Dynamic for behaviour Open Loyalty sees (purchases, events, tier); static for decisions made elsewhere (a hand-picked VIP list, a CRM model's output).

Segment, tier or label

Segment, tier, or a member label

Tiers for the programme's levels; labels for flags your systems set directly (opt-ins, brand); segments for everything derived from behaviour.

Freshness

Real-time, or eventual

Dynamic segments recalculate every 10 minutes and after editing. Segments built only from the custom attribute conditions (Members with custom attribute, Members with custom attribute value) are live and update within seconds — so a flag your systems set becomes an audience almost at once. A rule that must react instantly to a purchase belongs in the campaign's own conditions, not in a segment.

Conditions

Many narrow segments, or a few broad ones combined in rules

A few reusable segments; combine them with campaign conditions.

1

Make sure the data is there

Segment conditions read the member profile, transactions, custom events, tier and custom attributes. Check the integration sends every field a condition needs (e.g. channel on transactions, country on the profile).

2

Create the segments

Create dynamic segments with their conditions (AND or OR) and activate them. For static segments, export the list from your source system and upload it in the Admin Panel.

3

Use them in rules

Set campaign and reward visibility or conditions to the segment. Remember the up-to-10-minute delay when a member's behaviour moves them into a segment; live segments (custom attribute conditions only) follow within seconds.

4

Sync to CRM, if needed

Read members with GET /api/{storeCode}/segment/{segment}/members (paged) to build a CRM audience, and remove members on the SegmentMembershipDropped webhook. Before changing or deleting a segment, check what uses it with GET /api/{storeCode}/segment/{segment}/association/{resourceName}.

Sequence diagram

Dynamic segment: conditions on profile, purchases, events and tier, recalculated every 10 minutes and after editing, used directly by campaigns and rewards for visibility and conditions. Static segment: an admin uploads a member list exported from CRM as a CSV in the Admin Panel, and members stay fixed until the next upload. Using segments outside Open Loyalty: the integration layer reads the segment's members page by page and syncs the audience to CRM, and removes a member when a SegmentMembershipDropped webhook arrives.
Dynamic and static segments, and syncing to CRM

Go-live checklist

Admin Panel

Integration layer

Validation

Key endpoints

Webhooks: SegmentMembershipDropped

Last updated

Was this helpful?