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

Data Migration

Moving members, balances, badges and progress from a previous loyalty system into Open Loyalty without paying anyone twice.

When a programme replaces an existing one, members expect to keep their account, balance and status. This page covers planning and running the migration so the numbers match and no campaign pays twice. For the import formats and order, see the User Guide's Data migration guide and Imports.

Who does what

Area
Responsibility

Your team

Exports and cleans the data, writes and runs the migration job, signs off the reconciliation

Open Loyalty

Import tools and API; advice on order and volumes; a limits increase for large API migrations (request it from Open Loyalty support)

Programme team

Decides what carries over (balances, history, status, missions) and how members are told

What to carry over

Data
How
Notes

Members

Import (member) or POST /member

Keep the original registeredAt (anniversaries) and birthDate. Add a label such as migrated = true.

Balances

POST /points/add per member and wallet, or a unit-transfer import

One transfer per member and wallet with externalTransferId (e.g. MIG-{id}-{wallet}). Imports need the Open Loyalty member UUID. Decide the expiry of migrated units.

Lifetime totals

Labels or custom fields (e.g. total_earned_migrated)

Only if tiers or messages need them.

Tier

Let tier conditions recalculate, or assign by hand

If old status must be honoured exactly, assign the tier by hand.

Completed missions

POST /member/{member}/badge

One badge per completed mission worth showing.

Mission progress

PATCH /member/{member}/challenge/{challenge}/progress

Sets progress without paying milestone rewards.

Transaction history

Transaction import (optional)

Matched by email, phone or loyalty card number. Active purchase campaigns run on imported transactions.

Webhooks, redemption statuses, custom events

Not importable

Set up or replay through the API.

1

Protect against double rewards

Before importing: deactivate earning campaigns that would fire on migrated data (especially purchase campaigns, if you import transactions), and make welcome and lifecycle campaigns exclude migrated members (e.g. a condition on the migrated label).

2

Rehearse on staging

Run the full migration on staging with a copy of the data — anonymised, since staging shouldn't hold real personal data. Time it, fix rejects, and agree the reconciliation numbers.

3

Import members

Import members first, with the shared identifier as loyaltyCardNumber. Then get their Open Loyalty UUIDs — from the API responses or a members export — for the steps that need them.

4

Import balances, badges and progress

Add one unit transfer per member and wallet with a deterministic externalTransferId: if the job is re-run, existing transfers are rejected instead of doubled. Then badges and challenge progress.

5

Reconcile

Compare member counts and balance totals per wallet between the source and Open Loyalty, plus a sample of individual members. Investigate every difference before going live.

6

Switch on

Activate the campaigns that were paused, then switch the channels over — see the go-live checklist.

Sequence diagram

Before migrating, earning campaigns that must not pay twice are inactive and welcome campaigns exclude members labelled migrated. The migration job exports from the previous system and imports members with their original registration date and a migrated label, getting each customerId. It adds balances per member and wallet with an externalTransferId, so a re-run is rejected rather than doubled. It adds badges and sets challenge progress without paying rewards. Optionally it imports historical transactions, which active purchase campaigns would run on. It reconciles counts and balance totals per wallet, then campaigns are activated and channels switched over.
A migration run

Volumes and limits

  • Import files are limited to 100 MB, and up to 5 imports or exports can run at the same time — see Limits.

  • For an API-based migration of many members, throttle the job below the environment's soft limit and request a limits increase from Open Loyalty support in advance.

Checklist

Key endpoints

Last updated

Was this helpful?