> ## Documentation Index
> Fetch the complete documentation index at: https://docs.partnero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Import partners, customers and transactions

You can bring existing data into Partnero by importing partners, customers, and transactions in bulk. This article explains how to prepare and upload files so your program reflects historical activity, aligns with your current systems, and ensures accurate tracking and rewards.

→ [Click here](https://docs.google.com/spreadsheets/d/1ddUdHInvYyXRCOHA77vByr0wN8XWzhqlaCjzpuelKoo/edit?usp=sharing) to access an example file showing how partners, customers, and transactions can be imported and associated with each other.

***

### How to import partners

1. In your program, go to **Partners** and click **Import**:

   ![Image](https://mintcdn.com/partnero/5XvxY1Ha2K5lhYW3/images/image-114.png?fit=max\&auto=format\&n=5XvxY1Ha2K5lhYW3\&q=85\&s=5670ec12359ec718c546d3d29e5878e0)
2. Upload your CSV file and click **Import**.
3. Match the corresponding fields:

   ![Image](https://mintcdn.com/partnero/5XvxY1Ha2K5lhYW3/images/image-120.png?fit=max\&auto=format\&n=5XvxY1Ha2K5lhYW3\&q=85\&s=4633ee0d4cf1bde4fcee384d1fb9d4c1)
4. Click **Import**.

#### Instructions for the CSV file

To easily import your CSV file, ensure that the headers in the first row of the worksheet are appropriately named. Provide a header for each respective column. Once you upload the file, you will be prompted to confirm the matching fields. The following list contains required and optional columns for import:

* **Email address**: email address of the partner
* **Name**: name of the partner
* **Last name** (optional): last name of the partner
* **Partner ID** (optional): unique ID of the partner
* **Partner key**/**token** (optional): key will be used to generate a unique referral link
* **Joining date** (optional): date when partner joined the program

Important considerations:

1. Adhere to the character limits: 100 characters for the first and last name, 64 for the key, and 255 for other fields.
2. Ensure that the `partner key` and `email` columns contain unique values. This is crucial for accurate data processing and to prevent potential conflicts.
3. For the  `Joining date` column, please format the dates using the `Y-m-d` format. This standard format ensures consistency and compatibility with the import process

**Example**:

| Name | Last name | Email | ID | URL token | Joining date |
| - | - | - | - | - | - |
| John | Doe | [john.doe@example.com](mailto:john.doe@example.com) | partner-001 | ref-john-doe | 2024-01-15 |
| Jane | Smith | [jane.smith@example.com](mailto:jane.smith@example.com) | partner-002 | ref-jane-smith | 2024-02-20 |
| Michael | Johnson | [michael.j@example.com](mailto:michael.j@example.com) | partner-003 | ref-michael-j | 2024-03-10 |

***

### How to import customers

1. Navigate to **Customers**. Click **Import** > **Import Customers**:

   ![Image](https://mintcdn.com/partnero/5XvxY1Ha2K5lhYW3/images/image-116.png?fit=max\&auto=format\&n=5XvxY1Ha2K5lhYW3\&q=85\&s=b3d89ee6636336d98d635b4fa479bbd5)
2. Upload your CSV file and click **Import**.
3. Match the corresponding fields.

   ![Image](https://mintcdn.com/partnero/5XvxY1Ha2K5lhYW3/images/image-117.png?fit=max\&auto=format\&n=5XvxY1Ha2K5lhYW3\&q=85\&s=7086c3efda93f4647225ab37e1e57e8d)
4. Click **Import**.

#### Instructions for the CSV file

To easily import your CSV file, ensure that the headers in the first row of the worksheet are appropriately named. Provide a header for each respective column. Once you upload the file, you will be prompted to confirm the matching fields. The following list contains required and optional columns for import:

* **Email address**: email address of the customer
* **Name** (optional): name of the customer
* **Last name** (optional): last name of the customer
* **Customer key**: unique key of the customer; can be an email address
* **Partner ID\***: unique ID of the partner, used to link customer with correct partner
* **Partner key/token\***: unique key of the partner (or referral link token), used to link customer with correct partner
* **Partner email\***: email address of the partner, used to link customer with correct partner
* **Joining date** (optional): date when customer joined

\* At least one of the identifiers (Partner ID / Partner key / Partner email) is required.

Important considerations:

1. At least **one** partner identification option must be used: `partner id`, `partner key/token` or `partner email`.
2. Ensure the `Customer key` and `Email` columns contain unique values.
3. Provided `partner key`, `Partner email` or `partner ID` must belong to existing partners in the Partnero app.
4. For the  *Joining date* column, please format the dates in `Y-m-d` format.

**Example**:

| **name** | **last\_ name** | **email** | **customer\_ key** | **partner\_ id** | **partner\_key** | **partner\_email** | **joining date** |
| - | - | - | - | - | - | - | - |
| Alice | Cooper | [alice@customer.com](mailto:alice@customer.com) | cust-001 | partner-01 | | | 2024-01-20 |
| Bob | Martin | [bob@customer.com](mailto:bob@customer.com) | cust-002 | partner-01 | | | 2024-01-28 |
| Charlie | Davis | [charlie@customer.com](mailto:charlie@customer.com) | cust-003 | | ref-jane-smith | | 2024-02-28 |
| Diana | Evans | [diana@customer.com](mailto:diana@customer.com) | cust-004 | | | [michael@email.com](mailto:michael@email.com) | 2024-03-15 |

***

### How to import transactions

1. Go to **Customers**. Click **Import** > **Import transactions**:

   ![Image](https://mintcdn.com/partnero/5XvxY1Ha2K5lhYW3/images/image-119.png?fit=max\&auto=format\&n=5XvxY1Ha2K5lhYW3\&q=85\&s=fb2a93f5d7c3b05fb17ce66b9e4db526)
2. Upload your CSV file and click Import.
3. Match the corresponding fields.
4. Click **Import**.

#### Instructions for the CSV file

To easily import your CSV file, ensure that the headers in the first row of the worksheet are appropriately named. Provide a header for each respective column. Once you upload the file, you will be prompted to confirm the matching fields. Here are the required and optional columns for import:

* **Transaction name** (optional): name of the transaction
* **Customer key**: key of the customer who made the transaction
* **Action**: action (signup/sale) for which the transaction was made
* **Reward date**: date on which the reward was generated from the transaction
* **Reward amount** (optional): amount of the generated reward from the transaction
* **Amount** (optional): full amount of the transaction
* **Paid out** (optional): identification (true/false) whether the reward has been paid
* **Product ID** (optional): related product ID for which the transaction has been made
* **Product type** (optional): related product type for which the transaction has been made

Before proceeding with the import, ensure you have the data in the corresponding fields.

Important considerations:

1. Adhere to the 100-character limit for the *Transaction name* and 64-character limit for the *Customer key*.
2. Make sure you provide the `Customer key` of existing customers.
3. For the Reward date column, use the `Y-m-d` format.

**Example**:

| name | customer\_key | action | reward\_date | reward\_amount | amount | rewarded | product\_id | product\_type |
| - | - | - | - | - | - | - | - | - |
| txn-001 | cust-001 | sale | 2024-02-01 | 25 | 250 | FALSE | prod-101 | subscription |
| txn-002 | cust-001 | sale | 2024-03-01 | 25 | 250 | FALSE | prod-101 | subscription |
| txn-003 | cust-002 | sale | 2024-02-15 | 15 | 150 | TRUE | prod-102 | one-time |
| txn-004 | cust-003 | sale | 2024-03-10 | 50 | 500 | FALSE | prod-103 | subscription |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.