Historical data

Transactions to send

All historical payment transactions types need to be sent:

  • successful transactions
  • failed transactions
  • refunded transactions
  • chargebacks

Going live
Before going live, Flex needs to receive ideally for the last 12 months to build customer profiles and model fine-tuning.

Business case
If the purpose of the data extract is however to compute a business case, two months of data will suffice.


Transfer modes

Historical data is typically transferred to Flex in one of the following ways:

  1. Send a password protected ZIP file
  2. sFTP upload

Data layout

Please follow our required data layout, one record per transaction. This file cannot contain any PII or PCI data.

Template

We support .csv and .xlsx files

Fields

NameTypeRequirementComments
TransactionIDTextRequiredTransaction identifier
TransactionTimestampDatetimeRequiredDate and time
TransactionTimezoneTextRequired
TransactionTypeTextRequiredAuth, Capture, Refund, Chargeback
OrderIDTextRequiredInternal merchant order ID
OrderSourceTextRequiredMerchant Initiated (MIT) or Customer Initiated Transaction (CIT)
MerchantIDTextRequired only if more than one merchant.Required only if more than one merchant
MerchantMCCNumberRequired only if more than one merchant.Required only if more than one merchant
MerchantCountryTextRequired only if there are non-US merchants.ISO 3166-1 alpha-2 country code (2-letter)
CardNotPresentBooleanRequiredTrue/false
AmountNumberRequired
CurrencyTextRequiredISO 4217 currency code
ResponseCodeTextRequiredResponse received including error codes for failed transactions
ResponseCodeSourceTextOptional
ResponseDescriptionTextOptional
ResponseStatusTextRequiredApproved, Declined, Voided, Refunded, Chargeback, etc.
ResponseSubStatusTextOptional
AVSResultCodeTextOptional
CVVResultCodeTextOptional
CAVVResultCodeTextOptional3DS response
ProcessorNameTextRequired
If value cannot be provided, just leave an empty string.
PaymentMethodTypeTextRequiredCredit/Debit Card, Alternative Payment Method, ACH, BNPL, etc.
PaymentMethodBrandTextRequiredVISA, Mastercard, AMEX, PayPal, Klarna, etc.
PaymentMethodCountryTextRequiredISO 3166-1 alpha-2 country code (2-letter)
PaymentMethodIdTextRequiredAny type of identifier, non-PCI.
Used for transaction grouping
PaymentMethodFirst6NumberRequiredFirst 6 digits of payment method
PaymentMethodLast4NumberRequiredLast 4 digits of payment method
PaymentMethodExpirationMonthNumberRequired2 digits
PaymentMethodExpirationYearNumberRequired4 digits
PayerEmailTextRequiredLowercase without white space hashed (SHA-256)
PayerSurnameTextRequiredLowercase without white space hashed (SHA-256)
PayerNameTextRequiredLowercase without white space hashed (SHA-256)
PayerPhoneNumberTextOptionalE164 format hashed (SHA-256)
PayerAddressCountryTextRequiredISO 3166-1 alpha-2 country code (2-letter)
PayerAddressCityTextRequired
PayerAddressZipcodeTextRequired
PayerHouseNumberTextOptional

Hash is optional.