Input file format
The files containing the data to be imported should be formatted as follows:-
Create a file in CSV (Comma Separated Values) format as per RFC 4180, in accordance with the following requirements:
- The first line contains the names of the fields. You do not have to use all field names and you do not have to use them in the same order as listed on this page.
- Each subsequent line contains the fields for a single recurring contract. In other words: Each recurring contract is on a separate line.
- If a field doesn’t apply to the recurring contract that the line describes, specifying a value is skipped.
- Field names and values are case-sensitive.
- Multi-line fields are not allowed.
- The maximum file length is 1,000,000 lines.
- The maximum file size is 1 GB.
- Save the file in UTF-8 format (to support non-western characters).
- Encrypt the file using the PGP public key provided to you by either our Support Team, or your Adyen contact. For more information, see our PGP encryption documentation.
- Send the file to Adyen.
Input file fields
The fields for recurring contracts are:
Apart from the above fields, the CSV file can have fields for:
- Card data
- Address data
- SEPA recurring payments
- ACH recurring payments
- PayPal recurring payments
- Klarna recurring payments
- Shopper reference re-mapping (optional auxiliary file)
Card fields
When specifying card data, you need to provide:- Card number.
- Expiry date: month and year of expiry.
You can use either a combination of fields (ExpiryMonthandExpiryYear), or a single field to specify both month and year:ExpiryMMYY,ExpiryMMYYYY,ExpiryYYMMorExpiryYYYYMM.
ExpiryYYYYMMThe year and month of expiry, written as a 6-digit string. For example, 201806 for June 2018.ExpiryMonthThe month of expiry, written as a 1 or 2-digit string. For example, 6 or 06 for June. Use in combination withExpiryYear.ExpiryYearThe year of expiry, written as a 4-digit string. For example, 2018. Use this in combination withExpiryMonth. | |networkTxReference(for Visa) |
| The Visa Transaction ID from the initial transaction where the shopper signed up for a series of Subscription or UnscheduledCardOnFile payments. Visa won’t support the static value (Interim Transaction ID) after 31 October 2022. Not providing the Visa Transaction ID might result in soft declines and non-compliance assessment fees. |
| networkTxReference(for Mastercard) |
| The Mastercard Trace ID from the initial transaction where the shopper signed up for a series of Subscription or UnscheduledCardOnFile payments. Mastercard won’t support the static value (dummy Trace ID) after 19 October 2024. Not providing the Mastercard Trace ID might result in soft declines and non-compliance assessment fees. |
| transactionLinkId(for Mastercard) |
| The Mastercard Transaction Link ID. Mastercard is migrating from Trace ID to Transaction Link ID. We are required to store the Mastercard Transaction Link ID together with the TRACE ID. This means that transactionLinkIdwill only be imported ifnetworkTxReferenceis also provided. | |networkTxReference(for other card schemes) |
| For other card schemes besides Visa and Mastercard, we recommend that you send the networkTxReferencefrom the initial transaction where the shopper signed up for a series of Subscription or UnscheduledCardOnFile payments. However, if you do not have thenetworkTxReference, we will insert a card scheme-compliant static value on your behalf. We will do that until the schemes no longer allow static values. |
Address fields
Using the following fields, you can specify a physical address. If one field below is provided, then all other fields from this section are also required.Recurring SEPA payment fields
When specifying SEPA payment details, you always need to provide the IBAN of the bank account and the account holder name. For third-party payouts, you need to provide all fields listed below, except for the fieldsSepaMandateId and SepaMandateDateOfSignature. For more information, refer to Payouts to a bank account.
To optionally import SEPA Direct Debit mandates, include the mandate identifier, and the date of the mandate signature.
Recurring ACH payment fields
When specifying ACH payment details, you need to provide all of the following fields:Recurring PayPal payment fields
For third-party payouts, you need to provide all of the following fields.Recurring Klarna payment fields
Not all Klarna payment methods or countries/regions support recurring payments. When specifying Klarna payment details, provide all the following fields. Make sure that you enter a supported combination in the fieldsKlarnaVariant and KlarnaCountry.
Shopper reference re-mapping (optional auxiliary file)
If you want to change the shopper references upon importing, you can send an auxiliary shopper reference re-mapping file, in addition to the payment detail file.The format of the re-mapping file should include both of the following columns.
For example, the file might look like this:
Output file
When we have imported your CSV file, we’ll send you an output file with the migration results. If you need an encrypted output file, provide your public key to our Support Team. To provide more information about the migration, we will start adding new fields to the output file. Make sure that your parsing logic can handle changes such as new headers. The output file has the following fields:
You can also include the following fields in the output file. To receive these fields, contact our Support Team.
The following is an example output file, without additional fields, with four payment details successfully migrated: