Import cards in the Mercado Pago panel
The card import feature allows businesses that already have a customer and card database to securely migrate that data to Mercado Pago. Once the migration is complete, payments are processed through the Mercado Pago platform without interruptions for customers.
This process creates tokenized cardsSecure representation of card data using a unique identifier (token) that replaces sensitive information. The token allows processing payments without exposing the actual card data. in bulk by sending an encrypted file containing card data.
To access the card import tool, you need to contact your Mercado Pago business representative beforehand. After completing this step, you will receive a URL to access the file submission interface in the Mercado Pago panel.
Grant access to collaborators
By default, access to the card import portal is restricted to users with an administrator profile. To allow other collaborators to also use this feature, create a role with the appropriate permission and assign it to the desired users.
Using an account with administrator permission, go to the Your business section in the left sidebar menu and click Collaborators. You can also access it directly from the Collaborators panel.
Before inviting a collaborator, define their role.
- Click the Manage roles button and then Create role.
- Define a name for the role and set the permission to Mercado Pago.
- Within the Management and configuration permissions list, check the Card token creation option.
- Review the information and click Create role.
On the main Collaborators page, click Invite collaborator, enter the email address of the collaborator you want to invite, and click Continue.
You can use any email address, whether from someone directly in your organization or from a third party or service provider. The collaborator will receive an email with a link to complete the access setup for their new account.
Once the collaborator is created, assign them a role:
- From the main Collaborators page, click the collaborator's name to access their details.
- Select Add or change role and choose the previously created role that best fits that collaborator's responsibilities.
- Click Confirm and then Save.
File preparation
Prepare a .csv file specifying the data for each customer and their cards. Include the first line with the headers and separate each field with commas. All fields are required. The file supports up to 100,000 rows; if you have more cards, split the information into multiple files. The average token creation time is 60 minutes per 10,000 rows. The .csv file name must contain only letters, numbers, hyphens (-), underscores (_), and periods (.). See the specifications in the following table:
| Order | Header | Description | Format | Example |
| 1 | external_reference | Unique customer identifier in your system. | Alphanumeric | ORD-123456 |
| 2 | customer_email | Cardholder's email address. | Alphanumeric. The username in the email must contain at least 2 characters. | ej@email.com |
| 3 | card_number | Card number. | Numeric, from 13 to 19 digits. | 1234567812345678 |
| 4 | expiration_month | Expiration month. | Numeric, 2 digits. | 01 |
| 5 | expiration_year | Expiration year. | Numeric, 2 digits. | 25 |
| 6 | cardholder_name | Name as it appears on the card. | Use only letters without accents and spaces, avoiding numbers and special characters such as . , ; : - _ / \ ' " & @ + ( ) ñ and ç. | ATILIO GARCIA |
Below, you will find an example of a .csv file.
csvexternal_reference,customer_email,card_number,expiration_month,expiration_year,cardholder_name ORD-123456,ej@email.com,1234567812345678,01,25,PABLO SANCHEZ CLI-789012,test_payer@example.com,5480832801033311,12,26,MARIA GONZALEZ USR-345678,test_payer@example.com,4509953566233704,06,27,JOAO SILVA REF-456789,test_payer@example.com,4012888888881881,03,28,CAROLINA PEREZ
File validations
The cardholder_name field must contain only letters without accents and spaces, avoiding numbers and special characters such as . , ; : - _ / \ ' " & @ + ( ) ñ and ç.
File encryption
The .csv file must be encrypted before submission. The expected format is PGPPretty Good Privacy: encryption protocol that ensures data confidentiality and integrity through public key cryptography. with .asc or .enc extension.
See below the encryption process using GnuPG, a free encryption software. You can use other tools or methods as long as the result is in PGP format.
- Access the official website of GnuPG and download the version compatible with your operating system. In the "GnuPG binary releases" section, select the desired option. For Windows, use this direct link.
- Follow the installation wizard instructions.
- Verify the installation by opening the command prompt (CMD on Windows) and running:
bashgpg --version
You will see a response similar to the following.
bashgpg (GnuPG) 2.4.8 libgcrypt 1.11.1 Copyright (C) 2025 g10 Code GmbH License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
Encrypted file security relies on a key pair: one public keyCryptographic key that is shared publicly and used to encrypt data. Data encrypted with this key can only be decrypted with the corresponding private key. and one private keySecret cryptographic key used to decrypt data. Only Mercado Pago has access to this key, ensuring the security of encrypted data.. Keys are valid for 6 months and a new key is published two months before the current one expires, so there may be a period when two keys are valid at the same time.
| Key ID | Generated on | Valid until |
63C116D4535108A7 | 22/09/2026 | 22/03/2027 |
To use the public key, copy the following content and save it as an .asc file on your device:
key-----BEGIN PGP PUBLIC KEY BLOCK----- Comment: https://gopenpgp.org Version: GopenPGP 2.9.0 xsFNBGqyjVwBEACs+xzs5eFsWELDssAMLN46X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cPbR 4G6zsOOiBsbVqjf87223I+EdwpNqcuTF/aZujjfcUY4yuUC6xtV6EPdgNXoiXaTw HkkR5iQimesDPDdSmnFJtVjZH8McKSYTSmqpkiB6Xt6omlOwSJuEzkIDCPRwcm6l IjsFxOE/V2GXjTM0FDH77TRDIV4kpvGEugq0X3BlZFSgdqiOvKd/4QARAQABwsGs BBgBCABgBYJqso1cCRC9QheVBZJh2jUUAAAAAAAcABBzYWx0QG5vdGF0aW9ucy5v cGVucGdwanMub3JnxOIK5f0HtfMemhgDSGibOgKbDBYhBEVqZvfFA/iWB5GC7r1C F5UFkmHaAABkYBAAoqy29Iqr7jBfDxKj0prpeXpb3ew/28j3E0I32FlROkXePpZF NatwKAb+VuBEwdEV26oVRs9ZYb+5SDqi+HoprNx+x5eu5YbDIfmHoqzZwb3sfAx8 AbRUeW34TOUfvRbMS57j+OJpvr0OBzAOlfGx0vjDFl10UR+nx53zMmf06RB5XwoK PSjWC2r5PJWPTeh4XcRfCZL1GuZnLJT66pC05LbrPmB85wFweKkLcZK7eww0kZf+ /0uWkHtYMnwb9FiIuHlKFzIvR465cKIQCxdi5D3YB5Tor7jLK5QzU8vuaugNzb9x 8suINzx7AZX8dmJGzQq6LcK9AUBQB1u6J3NZL6FbeKw17CoHVav0fN4U7ezktFQC yYpzNVrJiTX1yZx2lvQIUBDHD4jrx0Ym55zdIfyP5uCtbrWrpUvawSlmzUsq69nB tMlHxiW/h09IPB7sprpspjXJZ2sEX8RH9pxZ1xQvOqQrW7kDNO+qpdcNDquTeF4g cKcWKgXXLcRfhHN4jqsogIujAzAk7FiQx8sJBINlhMXFl3DK7d3pkaMNrXq2BK1G U86dmV2Q4Syxb67cY35bQsa/P9fz9diMsZTxgkeDF9yyETWLo9PtYJmhOvmo3gy2 dbbNZZsTfWkePs4To5Ah9XACq4OpSTEXE6fes6Qa5moNfDJVukxMmmwgXbY= =fvjB -----END PGP PUBLIC KEY BLOCK-----
With the .asc file saved, follow the steps below to import the key and encrypt your .csv file.
-
Create an empty folder and place the public key
.ascfile and the.csvfile you want to encrypt inside it. -
Open that folder in Terminal (Mac/Linux) or Command Prompt (Windows).
-
Import the public key by running the following command:
bashgpg --import [file-name].asc
- Finally, you will receive a message confirming that the key was processed.
bashgpg: key BD421795059261DA: public key "a71bcbd4-6f80-474f-8ed0-9c84992256fa <efec13a1-9b2e-4337-ba6c-ccd2aa08e006>" imported gpg: Total number processed: 1 gpg: imported: 1
With the public key configured, encrypt your file by running the following command. Replace your_file_name.csv with the actual name of your file and KEYID with the KeyID corresponding to the downloaded key:
bashgpg --output encrypted_file.enc --armor --encrypt --recipient "KEYID" your_file_name.csv
The command parameters are detailed in the following table:
| Parameter | Description |
--output encrypted_file.enc | Defines the name of the encrypted output file |
--armor | Generates output in ASCII format |
--encrypt | Indicates the encryption operation |
--recipient "KEYID" | Specifies the identifier (KeyID) of the recipient's public key that will be used to encrypt the data |
your_file_name.csv | Input file containing sensitive data (card and email) to encrypt |
s and press Enter to continue.After confirmation, a file with the name entered in the --output option is generated in the same folder. This is the file you must send to Mercado Pago.
Encrypted file submission
- Access the URL provided by your business representative.
- In the Token generation interface, drag or select the encrypted file (
.ascor.enc).

- Verify the file name is correct and click Generate Tokens.

The system will display the status "Generating tokens...". Completion may take several hours depending on the file size. You can monitor the procedure in the Latest results field.

Results file interpretation
Once processing is complete, check the result on the Mercado Pago panel. Only cases processed completely successfully or partially generate a results file.
Results location
- Check the most recent status of your submissions in the Latest results section.
- Click the download link to get a
.csvfile with details of the generated tokens and any errors.

If you have completed the token creation but have not yet processed charges on the platform, contact your business representative to continue with the integration process.
Error resolution
If processing was partial, the results file will include the errors found. See the following table to identify and resolve each error type.

| Error | Description | Resolution |
| Customer record generated incorrectly | Error creating the customer record or adding the card. | Review customer and card data. If the error persists, contact your business representative. |
| Error linking a card | Could not determine the payment method. | Review card data or use a different card. |
| Token generated incorrectly | Incorrect card data was entered. | Review the card number and expiration date. |
| Expired expiration date | The expiration dates entered are past dates. | Verify that expiration dates are in the future. |
| Invalid email format | The email does not meet the allowed format (example@email.com). | Correct the email format. |
| Invalid email syntax | The email contains disallowed characters. | Review the email characters. |
| The card is invalid | The registered data corresponds to an invalid card. | Use a different card. |
Common file errors
See the most common issues when preparing the file and how to fix them.
| Problem | Invalid example | How to fix it |
cardholder_name with disallowed characters | JOSE PEREZ S.A., MARÍA GÓMEZ, JOÃO SILVA, ANA-MARIA, CLIENTE & CIA | Use only letters without accents and spaces. For example: JOSE PEREZ, MARIA GOMEZ, JOAO SILVA. |
| Malformed CSV file | Entire row enclosed in quotes or different separator used | Export the file as comma-separated CSV and keep the exact header from the template. |
| Empty lines | A row with no data between records | Remove empty lines before sending the file. |
| Expired card | expiration_month=01, expiration_year=24 | Send only cards with a future expiration date. |
Incorrect card_number | Token, card_id or internal identifier instead of PAN | Send the plain PAN of the card, with 13 to 19 digits. |
Invalid customer_email format | cliente@, cliente.com, cliente@@email.com | Use a standard email format, for example cliente@email.com. |
Once you have identified the errors, fix and upload a new file only with corrected data for records that had problems. You can perform as many imports as needed.