> For the complete documentation index, see [llms.txt](https://help.openloyalty.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.openloyalty.io/main-features/imports-exports/imports/data-migration-guide.md).

# Data Migration Guide

When migrating an existing loyalty program to Open Loyalty, the order in which you import data matters. Members are the core of your loyalty program — all other data depends on accurate member records being in place first.

#### 🧩 Recommended import sequence

{% stepper %}
{% step %}

#### 1. Import members

Start by importing all member profiles. This establishes the foundation — every other import type references members by their Open Loyalty UUID.
{% endstep %}

{% step %}

#### 2. Map member IDs

After importing members, note the Open Loyalty UUIDs assigned to each member. You will need these IDs for unit transfer imports. Transactions and custom events can use external identifiers (email, phone, loyalty card number), but unit transfers require the internal Open Loyalty member ID.

{% hint style="info" %}
Use the **Members export** to download a complete list of members with their UUIDs after the import is complete.
{% endhint %}
{% endstep %}

{% step %}

#### 3. Import unit transfers (point balances)

With member IDs mapped, import unit transfers to set correct point balances. This step requires the Open Loyalty member UUID — external identifiers are not supported for unit transfers.
{% endstep %}

{% step %}

#### 4. Import transactions (optional)

Import historical transaction data and match transactions to members. Transactions can reference members by email, phone, or loyalty card number, so they don't require the internal UUID.
{% endstep %}

{% step %}

#### 5. Import remaining data

Import any additional data as needed: segments, redemption codes, coupons, and collections.
{% endstep %}
{% endstepper %}

### What cannot be imported

Not all data types support bulk import. The following operations are **not available** through file import and must be done via the API or manually in the Admin Panel:

* Reward redemption status updates (e.g., marking redemptions as delivered or cancelled)
* Custom events
* Webhook configuration


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.openloyalty.io/main-features/imports-exports/imports/data-migration-guide.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
