> ## Documentation Index
> Fetch the complete documentation index at: https://adyen-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Import Data into Referral Lists

> You can import referral data into the Adyen payments platform to be placed on several [referral lists](https://docs.

You can import referral data into the Adyen payments platform to be placed on several [referral lists](https://docs.adyen.com/risk-management/configure-standard-risk-rules/referral-rules) used for fraud checks.

This bulk import of referral data is different from uploading items to a block or trust list using a CSV file in the Customer Area.

The CSV file that contains the referral data for the bulk import must be encrypted, and uploading the file requires our [Support Team](https://ca-test.adyen.com/ca/ca/contactUs/support.shtml?form=other).

## Input file format

1. Create a file in CSV (Comma Separated Values) format as per RFC 4180. These are the requirements:

   * Prefix each line with a supported fixed value field, either the payment method or the type of referral list. See the different types of referrals on this page for the details.
   * Each line contains the fields for a single referral item. In other words: each referral is on a separate line.
   * Multi-line fields are not allowed. You can use a variable number of fields per line.
   * A header is not allowed.
   * The maximum number of lines per file is 100.000 (if file size permits).

2. Save the file in [UTF-8](https://en.wikipedia.org/wiki/UTF-8) format (to support non-western characters).

3. Encrypt the file using the PGP public key provided to you by either our [Support Team](https://ca-test.adyen.com/ca/ca/contactUs/support.shtml?form=other), or your Adyen contact.

   For more information, see our [PGP encryption documentation](https://adyen-preview.mintlify.site/development-resources/security/sensitive-data/pgp-encryption.md).

4. Send the file to Adyen.

## Card

For card referrals the following columns are required:

| Field | Required | Description |
| - | - | - |
| **Fixed value: `card`** | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Record type identifier. |
| `merchantAccountCode` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The merchant account name. |
| `cardNumber` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The card number. |
| `description` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | A description of the item, for example a transaction ID of the original transaction. |
| `flag` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | You can perform the following actions: trust block delete |

## SEPA

For SEPA referral data the following columns are required:

| Field | Required | Description |
| - | - | - |
| **Fixed value:** `sepa` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Record type identifier. |
| `iban` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | IBAN of the bank account. |
| `merchantAccountCode` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The merchant account name. |
| `description` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | A description of the item, for example a transaction ID of the original transaction. |
| `flag` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | You can perform the following actions: trust block delete |

## Shopper name

For shopper name the following columns are required:

| Field | Required | Description |
| - | - | - |
| **Fixed value: `shopperName`** | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Record type identifier. |
| `merchantAccountCode` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The merchant account name. |
| `shopperName` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Name of the shopper. |
| `description` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | A description of the item, for example a transaction ID of the original transaction. |
| `flag` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | You can perform the following actions: trust block delete |

## Shopper email

For shopper email referrals the following columns are required:

| Field | Required | Description |
| - | - | - |
| **Fixed value: `shopperEmail`** | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Record type identifier. |
| `merchantAccountCode` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The merchant account name. |
| `shopperEmail` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The shopper's email address. |
| `description` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | A description of the item, for example a transaction ID of the original transaction. |
| `flag` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | You can perform the following actions: trust block delete |

## Shopper IP

For shopper IP referrals the following columns are required:

| Field | Required | Description |
| - | - | - |
| **Fixed value: `shopperIp`** | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Record type identifier. |
| `merchantAccountCode` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The merchant account name. |
| `shopperIP` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The IP address the shopper used to carry out the transaction. |
| `description` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | A description of the item, for example a transaction ID of the original transaction. |
| `flag` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | You can perform the following actions: trust block delete |

## Shopper reference

For shopper reference referrals the following columns are required:

| Field | Required | Description |
| - | - | - |
| **Fixed value: `shopperReference`** | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Record type identifier. |
| `merchantAccountCode` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The merchant account name. |
| `shopperReference` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | A shopper's reference, which is the unique identifier for a shopper. |
| `description` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | A description of the item, for example a transaction ID of the original transaction. |
| `flag` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | You can perform the following actions: trust block delete |

## Shopper address

For shopper address referrals the following columns are required:

| Field | Required | Description |
| - | - | - |
| **Fixed value: `shopperAddress`** | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png)  | Record type identifier. |
| `merchantAccountCode` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The merchant account name. |
| `street` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Street name. |
| `houseNumberOrName` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | House number or name. |
| `city` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Name of the city |
| `postalCode` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Postal code. |
| `stateOrProvince` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | State or province name. |
| `countryCode` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Country code |
| `description` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | A description of the item, for example a transaction ID of the original transaction. |
| `flag` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | You can perform the following actions: trust block delete |

## Shopper phone number

For shopper phone number referrals the following columns are required:

| Field | Required | Description |
| - | - | - |
| **Fixed value: `shopperPhoneNumber`** | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Record type identifier. |
| `merchantAccountCode` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The merchant account name. |
| `phoneNumber` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The phone number |
| `description` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | A description of the item, for example a transaction ID of the original transaction. |
| `flag` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | You can perform the following actions: trust block delete |

## Example file

The following is an example file with several lines of referral data:

```text theme={null}
card,YourMerchantOrCompanyAccount,4111111111111111,"Example description",block
shopperName,YourMerchantOrCompanyAccount,"S. Hopper","Example description",trust
shopperEmail,YourMerchantOrCompanyAccount,s.hopper@example.com,"Example description",trust
shopperIp,YourMerchantOrCompanyAccount,8.8.8.8,"Example description",block
shopperReference,YourMerchantOrCompanyAccount,YourMerchantReference,"Example description",delete
shopperAddress,YourMerchantOrCompanyAccount,StreetName,58,Amsterdam,2116 E,AMS,NL,"Example description",trust
shopperPhoneNumber,YourMerchantOrCompanyAccount,0123456789,"Example description",block
```


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