.CSV settlement report documentation

This section describes the structure and content of the .CSV Report

Introduction

The CSV format is designed to automate the reconciliation of payment transactions.

Note: Amounts are not in cents as in the API (e.g. amount from the API as 400 is presented as 4.00 in the .csv report)

File format - Content and Lines

The first column shows what kind of line it is. The possible lines are:

H-SE - Header for Settlement lines - Listing of all columns that will be included in SE - Settlement rows in this file.

H-PA - Header for Payment lines - Listing of all columns that will be included in PA - Payments rows in this file.

H-PO - Header for Payment Operations - Listing of all columns that will be included in PO - Payment Operation rows in this file.

SE - Settlements

Settlements are the funds that has been paid out to your bank account. It includes e.g. the amount that has been paid out and the transaction message equivalent to what you will see on your bank statements.

The settlement amount paid out is the sum of the PO:s (payment operations) amounts for CAPTURE and REFUND operations, and deducted potential transactions fees.

For full description of the Settlements line, see settlements table below.

PA - Payments

The settlement contains one or multiple Payments. The payment is the same as in the payment generated when you initiate a payment request towards the API platform.

For full description of the Payment line, see payments table below.

PO - Payment Operations

The payment operations is the operations made to the specific payment. The CSV report contain the most important operations that affect the settlement, such as CAPTURE and REFUND.

There can be multiple operations for a Payment.

Each CSV report contains one Settlement and only Payment Operations relevant for that Settlement, as well as the Payment that is parent for each Payment Operation. A Payment can therefore appear in multiple Settlements. E.g. if one Settlement contains a CAPTURE Payment Operation for a certain Payment and a later Settlement contains a REFUND Payment Operation for the same Payment.

For full description of the Payment Operations line, see payment operations table below.

File format message structure

Pass includeHeaders=true as a query parameter to include column headers at the beginning of the file.

The file format is structured as follows (optional when includeHeaders=true)

File format structure
Copy

File message components

Settlement components

Field nameField descriptionField Length
SELine type of settlementString, 2
payoutReferenceUnique reference for the payoutString
marketCountryCodeMarket country code (configured for the bank account)String
currencyCodePayout currency (ISO 4217)String,3
amountThe amount paid out to your accountDecimal
transactionMessage

Transaction message visible on your bank statement. Structured as the first 7 characters of the payoutReference + PAYER. This is to include a reference to the unique payoutReference that is to long for your bank to handle + the reference to PAYER so that you easily can locate from who the funds are from.

E.g. "hya0373 PAYER"

Note: Your bank might limit the length of this message and can cut off parts of the message.

String
bookingDateThe date funds was booked debited on Payer's bank accountDate
valueDateThe date funds was released from Payer's bank accountDate
payoutDateThe date Payout request was sent to the bank.Date
schemeTotalFeeExcludingVatTotal card specific scheme fees for the transactions excluding VatDecimal
interchangeTotalFeeExcludingVatTotal card specific interchange fees for the transactions excluding VatDecimal
payerTotalFeeExcludingVatTotal fees deducted by PayerDecimal
feeVatPercentageVat percentage for the fees (0 if reverse charge applies)Decimal
totalFeesExcludingVatThe settlement total sum of all fees (above)Decimal
totalFeesVatAmountThe settlement total Vat amounts for the Fees.Decimal

Payment components

Field nameField descriptionField Length
PALine type for paymentsString, 2
idThe payment IdInteger
uniqueIdThe unique IdString
initialAmountThe amount of the transaction when initiatedDecimal
externalPaymentReferenceYour external payment reference when initiating the paymentString, max 40, min 0
additionalReferenceYour external payment reference when initiating the payment (optional)String, max 40 min 0
currencyCodePayment Currency (ISO 4217)String, 3
typeType of payment method (e.g. CARD, BANK etc.)String

Payment operation components

Field nameField descriptionField Length
POLine type for payment operationsString, 2
type

The type of operation

CAPTURE: Captured funds for a payment REFUND: Refunded funds amount for a payment

String
amount

Amount of the operation

Note: Can differ from the payment amount

Decimal
createdDateDate when operation was createdDate
operationIdThe id of the operationString
expiryDateCard specific expiry date for payment operations with Type=AUTHDate
descriptionYour transactionDescription sent in when you Capture or Refund a paymentString
schemeTotalFeeExcludingVatCard specific scheme fees for the transaction excluding VatDecimal
interchangeTotalFeeExcludingVatCard specific interchange fee for the transaction excluding VatDecimal
payerTotalFeeExcludingVatPayer Fee for the transaction excluding VatDecimal
feeVatPercentageThe Fee vat percentageDecimal
cardSchemeNameName of card schemeString
cardUsageType of cardString
cardCategoryCard categoryString
interchangeDomainCard interchange domainString
countryIssuerCard country issuer, as an ISO 3166 numeric codeInteger

File processing considerations

Note that we may add or remove fields from the CSV files in the future. When parsing a CSV file, we therefore advice you to use the header rows to identify which fields that are included for each row type in that particular file. I.e., on the H-SE row, if the first field after H-SE is payoutReference, then when parsing an SE row later, you should parse the first field after SE as payoutReference. Parsing this way will ensure that you will be able to parse files even if a field is added or removed.

Example file

Example file including headers (optional when includeHeaders=true)

CSV
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard