# Import loyalty customers

Bring existing loyalty members into Roadmap from a CSV: points, tiers, membership dates and birthdays. What the file needs, how matching works, and how to read your import results.

Moving to Roadmap from another loyalty app, or bringing existing members across? The importer sets each customer's points, tier, membership dates and birthday in Roadmap from one CSV file.

![](https://cdn.sanity.io/images/qnhxgxnh/production/c25de7d5cd218c9f9e6be8608f769f29fa7c2afc-1960x1450.png?w=1600&fit=max&auto=format)

### Before you start

- **Customers must already exist in Shopify.** The importer matches each row to a Shopify customer. Rows for people who aren't customers in your store are skipped.
- **Create your tiers in Roadmap first.** The `membership_tier` value has to match a tier you've already set up. See [Loyalty tiers](https://www.roadmap.so/docs/loyalty-and-rewards/membership-tiers-and-referrals/loyalty-tiers).
- **Tag-based programs aren't imported.** Tag-based tiers, such as a secondary program, come from Shopify customer tags. Tag those customers in Shopify instead. See [Tag-based membership tiers](https://www.roadmap.so/docs/loyalty-and-rewards/membership-tiers-and-referrals/tag-based-membership-tiers).
- **B2B company members are skipped.** A company owns its members' loyalty, so their rows aren't imported. See [Managing companies and their loyalty](https://www.roadmap.so/docs/loyalty-and-rewards/b2b-loyalty/managing-companies-and-their-loyalty).
- **Blocklisted customers can be imported.** If a customer has your blocklist tag in Shopify, their row imports and the tag keeps them out of the program.

### The CSV format

Download the CSV template from the import window. It has two example rows so you can see how a row is filled in. Delete them before you import your own customers.

One row is one customer. Every row needs an `email` or a `customer_id`, or both.

| Column | What goes in it |
| --- | --- |
| `customer_id` | The Shopify customer ID. Use this for POS customers who don't have an email. |
| `first_name`, `last_name` | The customer's name, to help you read the file. Customers are matched on email or ID, not name. |
| `email` | The customer's email address. |
| `membership_tier` | The tier name, exactly as it appears in Roadmap, including capitals, for example `Silver` (not `silver`). Leave blank for points only. |
| `member_since` | The date they first joined your program. |
| `membership_starts_at` | The start of their current tier period. |
| `membership_expires_at` | The end of their current tier period. Must be after the start date. |
| `current_duration_spend` | What they've spent in the current tier period, for example `1250.50`. |
| `points_balance` | The points they can spend now. A whole number. |
| `points_earned` | The total points they've earned over time. A whole number. |
| `birthday` | Their birthday, for birthday rewards. |

> **Note:** **Formatting rules**

> - Dates are `YYYY-MM-DD`, for example `2026-12-31`.
> - Numbers have no commas or currency symbols: `1250.50`, not `$1,250.50`.
> - Tier names are case sensitive. `silver` won't match a tier called `Silver`.
> - Leave a cell blank to keep the customer's current value in Roadmap.

### How points are added

`points_balance` becomes the customer's **Opening balance**, shown as an entry on their [loyalty timeline](https://www.roadmap.so/docs/loyalty-and-rewards/customer-management/understanding-a-customers-loyalty-timeline). For a new member, that's their whole balance. For a customer who has already earned points in Roadmap, the opening balance sits alongside those points.

Importing the same customer again replaces their opening balance with the new value. It's never added twice, so uploading a file again is safe.

If you're matching balances from another app, check what each customer has already earned in Roadmap and set `points_balance` to the difference.

### Run the import

1. **Open the importer**
   In **Roadmap**, go to **Loyalty Program** > **Customers**, open **Actions** and click **Import Members**.

2. **Add your file**
   Click **Add file**, or drop your CSV onto the upload area.

3. **Click Import customers**
   The import runs in the background. You can close the window and keep working: a progress bar stays on the page, and clicking it reopens the import. You'll get an email when it finishes.

> **Note:** One import runs at a time. If an import is already running, a new one can't start until it finishes.

### Read your results

When the import finishes, **Latest import** shows the file name, who ran it, and three numbers:

- **Imported**: rows saved to the customer in Roadmap.
- **Skipped**: rows left out on purpose, for example a duplicate row or a customer who isn't in your store.
- **Failed**: rows that couldn't be imported because something in the row needs fixing.

![](https://cdn.sanity.io/images/qnhxgxnh/production/768c471d58518484f5497e2393f51bd64731b40e-1488x482.png?w=1600&fit=max&auto=format)

Earlier imports sit under **Show earlier imports**, each with its own **Download results** button.

#### Verification

Straight after the import, Roadmap checks every imported row against your file. Skipped and failed rows aren't checked.

If everything matches, there's nothing to do. If any imported row saved a different value from your file, a callout appears under the numbers, for example **2 of 14 imported rows don't match your file**. The results file shows which field differs.

![](https://cdn.sanity.io/images/qnhxgxnh/production/e1321b0560592f559f3c41f5ad70805009a8f6bd-1960x1630.png?w=1600&fit=max&auto=format)

#### The results file

**Download results** gives you every row from your file: imported, skipped and failed. Failed rows come first, then skipped, then imported. Four columns sit in front of your original data:

| Column | What it shows |
| --- | --- |
| `csv_row` | The line number in the file you uploaded. |
| `status` | **Imported**, **Skipped** or **Failed**. |
| `reason` | Why a row was skipped or failed, and how to fix it. Blank for imported rows. |
| `verification` | For imported rows: **Matches file**, or the field that differs. Blank for skipped and failed rows. |

To fix failed rows: filter the file to **Failed**, correct each row using its reason, delete the four result columns, and upload the corrected rows.

#### Status badges

| Badge | Meaning |
| --- | --- |
| **Importing** | The import is running. |
| **Completed** | Every row imported or was skipped on purpose. |
| **Some rows failed** | At least one row needs fixing. Download the results to see which. |
| **Time limit exceeded** | The import didn't finish. Upload the same file again to finish it. Rows that already imported won't change. |

### Common reasons a row is skipped or fails

| Reason | What to do |
| --- | --- |
| No email or customer\_id | Add one so the customer can be found. |
| No Shopify customer has this email or customer\_id | The person isn't a customer in your store. Create them in Shopify first, or leave the row out. |
| Email and customer\_id belong to different customers | Check which customer the row is for and correct one of the two values. |
| Duplicate of another row | Only the first row for each customer is imported. Combine the rows into one. |
| Tier doesn't exist | Use the tier name exactly as it appears in Roadmap, including capitals. |
| Tag-based tier | Tag the customer in Shopify instead. |
| B2B tier on a customer who isn't in a B2B company | Use a D2C tier, or add the customer to the company first. |
| B2B company member | The company owns this customer's loyalty. No action needed. |
| Date isn't valid | Use `YYYY-MM-DD`. Birthdays must be a real date. |
| Expiry date is before the start date | Correct `membership_starts_at` or `membership_expires_at`. |
| Points or spend isn't a number | Use whole numbers for points, and no commas or currency symbols for spend. |

### Related guides

- [Manage loyalty customers](https://www.roadmap.so/docs/loyalty-and-rewards/customer-management/manage-loyalty-customers)
- [Understanding a customer's loyalty timeline](https://www.roadmap.so/docs/loyalty-and-rewards/customer-management/understanding-a-customers-loyalty-timeline)
- [Loyalty tiers](https://www.roadmap.so/docs/loyalty-and-rewards/membership-tiers-and-referrals/loyalty-tiers)
- [Tag-based membership tiers](https://www.roadmap.so/docs/loyalty-and-rewards/membership-tiers-and-referrals/tag-based-membership-tiers)
- [Loyalty profile properties and snippets for Klaviyo](https://www.roadmap.so/docs/loyalty-and-rewards/loyalty-klaviyo-integration/loyalty-profile-properties-and-email-snippets)
