If your ticketing, POS or membership system can put a file on an FTP or SFTP server but has no integration with Heyloyalty, the FTP import can fetch the data for you. It fetches your contacts or their purchases from the server at fixed times, so you don’t have to import files by hand.
In this guide, you can read what the import can do, what the file must look like, and how to set up the import step by step.
What value does the FTP/SFTP import provide?
Use data from systems without an integration
Many ticketing, POS and booking systems can export a file every night but have no integration with Heyloyalty. With the FTP import, the data still comes in, and you can use it in your campaigns and flows.
Keep your contacts up to date
New guests and changed details reach the list on the next run. You send to the right addresses without anyone having to remember to import a file.
Write based on what guests have bought
If you import purchase data, every purchase comes into the list’s tracking. You can then see who bought what and, for example, offer a season pass to guests who have bought single tickets several times this year.
Let the import start your flows
The import can start your active automations. A new contact from the POS system can get your welcome email, and a purchase can start a follow-up, without you doing anything.
Integration specifications
- The import fetches CSV files from an FTP or SFTP server. Heyloyalty logs in with a username and password.
- An import fetches either contacts for a list or purchase data for the list’s tracking. If you need both, create one import for each.
- The import runs automatically every 4, 8, 12 or 24 hours from the start time you choose (Danish time).
- The files stay on the server, and the import fetches them again on every run. Read more in The files stay on the server.
- If you have several FTP imports, they run one at a time, and you decide the order.
- You can get an error report by email with the rows that couldn’t be imported.
- From the overview, you can fetch the current data right away and copy an import to another list.
What the file must look like
- The file is a CSV file, and the first line holds the column names. Those are what you map to the fields in Heyloyalty in step 4.
- The values are separated by a fixed character, for example a semicolon. You enter the character in step 3.
- Save the file in UTF-8, and don’t use æ, ø or å in the column names. Read how to save a file in the right format in Create an import file in CSV UTF-8 format.
Which files does the import fetch?
It depends on the path you enter in Path to the folder where the files are located:
- A file, for example
/export/contacts.csv: The import only fetches that file. - A folder, for example
/export/contacts/: The import fetches every CSV file in the folder. Files in subfolders are not included. - A file with a date in its name, for example
/export/contacts_2026-12-01.csvor/export/contacts_20261201.csv: The import starts with that file and moves to the file with the next date every night at 03:00. The rest of the file name and the date format must be the same in all the files. If today’s file is missing, the import fetches the newest file with an earlier date.
The file name must end in .csv in lower case. Other files are not fetched.
The files stay on the server
The import neither deletes nor moves the files on the server. It fetches them again on every run, even if they haven’t changed. So let your system overwrite the file each time or remove old files from the folder. If you use dates in the file name, every run on the same day fetches the same file, so Every 24 hours fits best.
Step 1: Create an FTP import
Go to Integrations in the menu on the left, and click FTP import. Then click Create FTP import.
Step 2: Fill in the settings
Under Settings, you choose what the import fetches and how Heyloyalty logs in to your server:
- Import Job Name: A name you can recognize the import by in the overview, for example "Contacts from the ticketing system".
- Import purchase or contact data: Choose Contacts to create and update contacts on a list, or Purchase data to import purchases into the list’s tracking.
- List: The list the data goes to. With Purchase data, you can only choose lists that have a tracking integration. Read how to create one in Tracking – the experience industry.
- Match contacts by field (Contacts only): The field that links a row in the file to a contact on the list, usually Email or Phone number. The value must be unique for each contact.
- Separate order lines by field (Purchase data only): Use this when the same product appears on several lines in one order, for example tickets that each have their own ticket ID. Choose the field with the ID, so each line is recorded separately. Lines without a value in the field are skipped and included in the error report. With None, the setting isn’t used.
- Server link: The server’s address, for example
sftp.yourcompany.com. - Path to the folder where the files are located: The path to the file or folder on the server. See Which files does the import fetch?
- Username and Password: The username and password for the server.
- Protocol: FTP or SFTP. Choose SFTP if your server supports it, because the connection is then encrypted.
- Port: Set to 21 for FTP and 22 for SFTP when you choose the protocol. Change it if your server uses another port.

Step 3: Choose import settings
Under Import settings, you decide when the import runs and how the data is handled. These settings apply to both contacts and purchase data:
- FTP Import Interval: How often the import runs: every 24, 12, 8 or 4 hours.
- Start Time: The time of the first run of the day. With Every 8 hours and 03:00, the import runs at 03:00, 11:00 and 19:00.
- Delimiter, the character that separates data in your file: The character between the values in the file, for example
;or,. - Date format: How the dates are written in the file, for example
dd-MM-yyyyfor 01-12-2026. Below the field, you see which characters you can use and how a date is read with your format. If you leave the field empty, the import tries to recognize the dates itself. - Send active automations: Choose Yes if the import may start your active automations.
- Send any errors in the import file to: The email address that should receive the error report. Enter one address. If the field is empty, you get no error report.
If you import contacts, you also get these settings:
- Import type: What the import does with the contacts in the file:
- Update or create: Contacts already on the list are updated, and new ones are created.
- Create contacts: Only new contacts are created. Contacts that already exist are not changed.
- Update only: Only contacts already on the list are updated. No new contacts are created.
- Managing Contact Duplicates: What happens when the same value in the match field appears on several rows in the file:
- Import no duplicates: None of the rows are imported.
- Import first duplicate: Only the first row is imported.
- Import all: All the rows are imported in the order of the file.
- Character that separates options: The character between several options in the same cell, for example
|, if the file has fields with several choices. - Avoid subscribing currently unsubscribed contacts: Choose Yes if contacts who have unsubscribed should not be subscribed again by the import.
- Send webhooks: Choose Yes if the import should send the list’s webhooks for the contacts it creates or updates.

Step 4: Map the fields
Under Field mapping, you link the columns in the file to the fields in Heyloyalty. The fields in Heyloyalty are on the left. Enter the column name in Column in the file, and choose under Do this what should happen to the value.
Field mapping for contacts
For contacts, you see the list’s fields and Heyloyalty ID. The field you match on shows Matched on and must have a column. For the other fields, you choose:
- Ignore: The field isn’t imported.
- Overwrite with: The value in the file replaces the value on the contact.
- Fixed Value: Enter a value instead of a column name. Every contact in the file gets that value in the field, for example Denmark in the field Country.
- Add (number fields and fields with several choices): The number in the file is added to the number on the contact, and options are added to the ones the contact already has.
- Subtract (number fields): The number in the file is subtracted from the number on the contact.

If a field is missing, create it on the list first. Read how in Lists and fields. Also check that the field type fits the data. A value that doesn’t fit the field, for example text in a number field, ends up in the error report.
Field mapping for purchase data
For purchase data, you see the list’s tracking fields, and you can choose Ignore, Overwrite with or Fixed Value. The import needs a column for Product ID and for at least one of the fields email, phone and loyalty_member_id. Those are what link the purchase to a contact.
Event type shows what happened: Visit, Add to basket, Bought or Cancelled. Enter the name of the column with the event type. If your file uses its own values, for example Sold or Refunded, enter them next to the right event type under Which values in … mean what?. Press Enter after each value. Values that aren’t mapped are imported as they appear in the file.

If you have chosen a field in Separate order lines by field, it shows Separates order lines, and the field must have a column.
If a tracking field is missing, create it as a custom field on the list’s tracking: Go to Integrations → Tracking, click the three dots next to Create new tracking, and choose Add custom fields.
Step 5: Create the integration
Click Create integration at the bottom of the page. If a required setting or a column is missing, it is marked before you can save. The import is now in the overview and runs for the first time at the next scheduled time. When you edit an import, the button is called Save integration.
Step 6: Fetch the current data, and check the import
To see the result right away, click the three dots next to the import in the overview, and choose Import Current Data. Confirm with Import Current Data. The import then fetches the files with the saved settings. The scheduled runs aren’t changed.

Then check that the data came in correctly:
- Contacts: Go to Lists, and open the list. Check that the contacts were created or updated, and that the details are in the right fields.
- Purchase data: Find the purchases in Activity feed.
- Error report: If there are rows that couldn’t be imported, you get an email at the address you entered in step 3.
Manage your FTP imports
You manage your imports from the overview under Integrations → FTP import.
Edit or delete an import
Click the three dots next to the import, and choose Edit FTP import or Delete FTP import.
Copy an import to another list
Click the three dots next to the import, and choose Copy FTP import. Select the list to copy the import to, and click Copy FTP import. The copy gets the same settings and the same field mapping.
- For contacts, only the fields that exist on the new list are kept. So go through the field mapping on the copy.
- For purchase data, the new list must have a tracking integration.
Set the order of several imports
If you have several FTP imports, they run one at a time. You decide the order: Click More actions next to Create FTP import, and choose Order of FTP file imports. Drag the imports into the order they should run in, and click Save order. No. 1 is imported first, and the next one starts when the previous one has finished.
Is your data not coming in?
Check these things:
- Are the server address, username, password, protocol and port correct?
- Does the path point to the right file or folder, and does the file name end in
.csvin lower case? - Are the column names in the field mapping exactly as in the first line of the file?
- Do the delimiter and date format match the file?
- For purchase data: Do Product ID and at least one of the fields email, phone and loyalty_member_id have a column?
- Have you received an error report by email?
If still no data comes in, contact Heyloyalty Support.
Use your FTP/SFTP data actively
You have now set up an FTP import that fetches your contacts or their purchases automatically. Every run keeps the list up to date with the data your system already has.
Use the data to answer questions such as: Who has bought several times this year, but not in the last month? Which guests came onto the list from the POS system but have never opened an email? Build the answers as segments, and send to them in your next campaign, or let a flow write to them automatically. Read how to segment on purchases in Tracking Segmentation.