Batch File

On this page, you will find a walk-through guide on migrating tokens using batch files. After completing the guide steps, you will have a list of customers with enrolled payment methods in their accounts.

Requirements

Before starting following the steps described in this guide, you need to:

Ensure to have concluded the steps before following the guide.

Migrate tokens via batch file

Step 1: Share the customer data

To initiate the process, you will need to provide Yuno's team with customers' data in CSV format. These files should include customers' personal information and the external token used by the current payment provider. The table below outlines all the essential standard parameters that should be included in the CSV files and their respective descriptions.

ParameterDescription
account_idThe unique identifier of the account.
merchant_customer_idThe unique identifier of the customer in the external merchant.
first_nameThe customer's first name.
last_nameThe customer's last name.
emailThe customer's e-mail.
countryThe customer's country.
document_numberThe customer's document number.
document_typeThe customer's document type.
typeThe payment method type.
idThe unique identifier of the payment provider. For example, dLocal.
payment_method_tokenThe payment method token for the provider specified in id.

Step 2: Tokenize the customer information

Yuno is responsible for executing this step. After receiving the CSV file, Yuno will asynchronously tokenize the card data from the third-party payment providers through the batch process. As a result, customers will be created, and payment methods will be enrolled in their accounts. In addition, Yuno will generate a GPG-encrypted CSV file with all generated data.

Step 3: Receive the migration results

After tokenizing the payment methods and enrolling the respective customers' accounts, Yuno will return a CSV file containing all the process resulting information. The file will provide the information received in Step 1, along with a unique customer_id assigned by Yuno and a token_ID (payment_method_id) for each payment_method_token provided.

The Yuno shared data enables unique identification and referencing of customers and payment methods for future transactions. The data description and parameters in Yuno's CSV are listed below.

ParameterDescription
merchant_customer_idThe unique identifier of the customer in the external merchant.
first_nameThe customer's first name.
last_nameThe customer's last name.
emailThe customer's e-mail.
countryThe customer's country.
document_numberThe customer's document number.
document_typeThe customer's document type.
typeThe payment method type.
idThe unique identifier of the payment provider. For example, dLocal.
payment_method_tokenThe payment method token for the provider specified in id.
customer_idThe customer's unique identifier.
payment_method_idThe unique identifier of the payment_method.