# Migrate payment data from another provider

Explains how to migrate existing payment tokens from another provider to Payroc by contacting the Gateway Team, formatting a CSV file, encrypting it with PGP, and submitting it via SFTP.

To import data about tokens from another provider, you need to complete the following steps:

**Step 1.** [Contact us](#step-1-contact-us)  
**Step 2.** [Format the data](#step-2-format-the-data)  
**Step 3.** [Encrypt the file](#step-3-encrypt-the-data)  
**Step 4.** [Send us the file](#step-4-send-us-the-file)

<a id="step-1-contact-us"></a>
## Step 1. Contact us

Before you import your data from another provider, email our [Gateway Team](mailto:gatewaysupport@payroc.com?subject=Sensitive%20data%20import%20request&body=Hello,%0A%20I%20am%20requesting%20a%20data%20import%20from%20my%20existing%20provider%20to%20Payroc.%20Please%20use%20the%20details%20below%20to%20start%20the%20process.%0A%0APartner%20contact%20details%0A-%20Contact%20name%0A-%20Email%20address%0A-%20Phone%20number%0A-%20Doing-business-as%20(DBA)%20name%0A%0AMerchant%20contact%20details%0A-%20Contact%20Name%0A-%20Email%20address%0A-%20Phone%20number%0A-%20(Optional)%20Merchant%20ID%0A-%20Doing-business-as%20(DBA)%20name%0A%0AToken%20import%20details%0A-%20Name%20of%20the%20current%20processor%0A-%20Estimated%20number%20of%20tokens%20and%20personal%20account%20numbers%20(PAN)%20that%20you%20want%20to%20migrate%0A-%20What%20type%20of%20data%20is%20being%20requested,%20card,%20ACH%20or%20both%3F) with the following information:

- Current processing gateway
- Current processor
- Token direction (Import or Export)
- Approximate number of tokens
- Primary contact details:- Name
  - Email
  - Phone
- Merchant DBA
- Merchant MID
- Merchant GWID

After you contact our Gateway Team, we send you a global unique identifier (GUID) that you use when you name the file to allow us identify your import file. We also provide you with information about how to format the file.

<a id="step-2-format-the-data"></a>
## Step 2. Format the data

We accept only CSV files for importing sensitive data. The name of the CSV file must include the GUID that we sent you and your terminal number that we assigned to you, for example, `<GUID>_<terminal_number>.csv`.

In the CSV file, you must separate values with either semicolons (;) or colons (:), and use the headers in the following table:

| Field name | Min length | Max length | Explanation | Mandatory or Optional |
| --- | --- | --- | --- | --- |
| cardNumber | 12 | 19 | Unencrypted card number with without spaces. | Mandatory |
| cardHolderName | 0 | 50 | Cardholder name. | Optional |
| cardExpiry | 4 | 6 | Card expiry must be in one of the following formats: **MMYY**, **YYMM**, **MMYYYY**, or **YYYYMM**. All records must use the same format. | Mandatory |
| email | 0 | 128 | Cardholder's email address. | Optional |
| countryCode | 0 | 2 | Two-letter country code, for example, `US`, `UK`, or `DE`. | Optional |
| region | 0 | 128 | Customer data. | Optional |
| address | 0 | 128 | Customer data. | Optional |
| city | 0 | 128 | Customer data. | Optional |
| postCode | 0 | 128 | Customer data. | Optional |
| merchantref | 1 | 200 | Actual secure token. | Mandatory |
| transactionReference | 0 | 128 | Reference for the original transaction used to create this token. | Optional |

<a id="example"></a>
### Example

The following example shows the layout of the CSV file with the headers.

![CSV Layout](/assets/live/knowledge/csv-layout.png)

<a id="step-3-encrypt-the-data"></a>
## Step 3. Encrypt the data

**Note:** If you’re unfamiliar with Pretty Good Privacy (PGP), see [GnuPG](https://www.gnupg.org/) and start by [importing a public key](https://www.gnupg.org/gph/en/manual.html#AEN84).

We use PGP to share and receive sensitive data. To encrypt your data with PGP software, use the following information:

**Key ID:** `484BE277C74555DA`  
**Key type:** RSA  
**Key size:** 4096 bits  
**Fingerprint:** `CA0E 6F0F B819 0CFB DC71 8188 484B E277 C745 55DA`  
**User ID:** `Payroc Import Key (PCI) <payroc_gateway_pgp@payroc.com>`

<a id="public-key"></a>
#### Public key

```
    -----BEGIN PGP PUBLIC KEY BLOCK-----

    mQINBGkLfQ8BEADKKjMzH97I5/sqBvfAWJfF9sAfAZ69lJo63eilUK313bg+Kl0d
    +qijb41tv+WgOt8wWgUG4TdK4wJ/KP1cRkcm++q1qleSeHmrQ2Wo2/HtwibXBVTi
    KVNTK584qrWwQRquhIVNJQZ8oqXTi2pu2xX1gu14BaS8kSkJz+WPeBNbq9mNP1B5
    Kz5/EXpNWaqAsaqg+wPU3dTX7HE4FYUbLzbqoqV7/jPb12aPer6Rkc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2gUCaQt9DwIbDAAKCRBIS+J3x0VV2rtwD/9/HyDEAUAJpZxG3fLH
    0yiNce9GU3OlanunK8wZW+Ek3bg++O8dLzbRVOs+s1RPHTO+MYS5S0ijCqHt/Urc
    NAYR0R8/0LpakYs+yBKAL/r25S9bwb3fGZFHrO5RFFxKx5BsCGKLG7N9VY5D30l3
    QVLu4+l3Ny8ymLRAhY7mx9E2TPOIqvnto/EZA6qQUPfivraf+d8w8u9rU8lY7F1T
    sWGp4KdV/kVidJRyTiyMLfggPxIeh6UQ8EmejuAzeM7xv6/b69w4+JtNkPPb0LIP
    sUc/WslLYLoYpXXvxCUhnGpgCMy0B7ie0Z1ufC1GHqq8U5bRhgiOYAAWKeJ/BQW1
    qIeG830MewXxNMunZhktvo8S9tncuKBmPJru3EQ5+qtWa8q6E7uD1J2OyP1LcPJg
    QZTrcH2aJcoHTkI6Sn6fu6qKh83i2hNjZsoIeAtXJlx54kaC63IvoLa1SXkitC5d
    T5WAJ3Xj4qtaQjnS1CHVjgAVWcRkpHy73jNqykJwfhzYTI7MztydCEf0o8wthp5S
    p6i4ewsue11Sj6hD9RepKcB/oF5hZfdpOGxdDF9rZuu5nnaFru1+vggKaR9ivjDY
    NOJ6/GJUo5G2uyIGCcjNJEAvrTtTMtwo1v4fsSsvozldGyB1K10OeehCX0gLzvb7
    ia/FRV1EaYdDV+Xt/1bef5lG3Q==
    =Pqe1
    -----END PGP PUBLIC KEY BLOCK-----
```

<a id="step-4-send-us-the-file"></a>
## Step 4. Send us the file

Upload the PGP-encrypted file to a dedicated folder on your SFTP server, and then email the SFTP credentials to [tokentransfers@payroc.com](mailto:tokentransfers@payroc.com).

After we receive your file, it takes approximately 30 business days to import the data.
