Redirect customers to Trustly checkout page

Trustly Express API

If you’re not able to use the Trustly Widget, Trustly Express can be implemented using our API and allows for customized integration.

Include the accountID attribute in the Deposit API call for a user that has made a previous Trustly Deposit. The accountID is a unique identifier for the customer's bank account that is generated by Trustly and shared in the Account notification after a completed Deposit.

When including the accountID in a Deposit API call, the EndUserID parameter should be the same as in previous Deposit API calls for the same end-user.

Request Parameters

Parameter nameDescriptionRequiredTypeExample
EndUserIDID, username, hash or anything uniquely identifying the end-user requesting the deposit. Should be the same as in previous Deposit API calls.YesText123123

Attributes

Attribute nameDescriptionRequiredTypeExample
AccountIDBank account identifier obtained from a previously completed deposits Account Notification.YesText1234567890
NationalIdentificationNumberThe end-user's social security number / personal number / birth number / etc. If this is not included the user will have to manually enter their National ID each time. This adds unnecessary steps to the experience.Recommended for Sweden only. Must not be included for other markets.Text790131-1234
UnchangeableNationalIdentificationNumberThis attribute disables the possibility to change/type in a national identification number when logging in to a Swedish bank. If this attribute is sent, the attribute NationalIdentificationNumber needs to be correctly included in the request. Note: This is only available for Swedish banks.Recommended for Sweden only. Must not be included for other markets.Numeric1

Code Example

Request

{
  "method": "Deposit",
  "params": {
    "Signature": "f4ThjuMqbsdG6u ... S16VbzD4h==",
    "UUID": "258a2184-2842-b485-25ca-293525152425",
    "Data": {
      "Username": "merchant_username",
      "Password": "merchant_password",
      "NotificationURL": "https://URL_to_your_notification_service",
      "EndUserID": "12345", //Same EndUserID as previous Deposit
      "MessageID": "your_unique_deposit_id",
      "Attributes": {
        "Country": "SE",
        "Locale": "sv_SE",
        "Currency": "SEK",
        "Amount": "100.00",
        "AccountID" : "1234567890", //AccountID from account notification
        "Firstname": "John",
        "Lastname": "Doe",
        "NationalIdentificationNumber": "19790131-1234", //Person ID for Swedish users
        "UnchangeableNationalIdentificationNumber": "1",
        "SuccessURL": "https://yourpage.com/success",
        "FailURL": "https://yourpage.com/fail"
      }
    }
  },
  "version": "1.1"
}

📘

Unsupported banks

If the AccountID parameter is set for a bank that doesn’t yet support Trustly Express, the bank will be pre-selected in the Trustly Checkout but the customer will have to log in to the bank before approving the payment.
For more information about which markets and banks support Trustly Express, please reach out to your Trustly Account Manager.

🚧

AccountID in combination with RequestKYC

The AccountID attribute will be ignored for Deposit orders with RequestKYC. If you want to enable Trustly Express, exclude the RequestKYC attribute.

Trustly Express API presentation guidelines

To ensure the best user experience, display the Trustly payment option for the returning user together with the bank's logo and masked account number. The necessary details are shared in the Account notification.

Mandatory information to present:

  • Bank logo
  • Masked account number (descriptor)
  • Trustly logo

Some examples of how to present this information can be found below.

Trustly hosted bank logos

Use the clearinghouse and bank code to obtain the bank logo as an asset, see table below.

Assets URL for the bank logos:
https://assets.trustly.com/checkout/logos/banks/default/[bank_code]/regular.png
https://assets.trustly.com/checkout/logos/banks/default/[bank_code]/round.png

For example, to get the round bank logo for Nordea in Finland the URL is:
https://assets.trustly.com/checkout/logos/banks/default/ndea/round.png

Below is a list of all available banks, and the name to use in the URL:

BankCountryBank Code in URLAlternative URL
BAWAG P.S.K.Austriabawa
Bank AustriaAustriabkau
EasybankAustriaeasy
N26Austriantsb
RaiffeisenAustriarlnw
VolksbankAustriavboe
MONETA Money BankCzech Republicagba
Air BankCzech Republicaira
ČSOBCzech Republicceko
Fio bankaCzech Republicfiob
Komerční bankaCzech Republickomb
KreditbankenDenmarkaakr
Arbejdernes LandsbankDenmarkalba
Danske BankDenmarkdaba
Djurslands BankDenmarkdjur
Jyske BankDenmarkjyba
NordeaDenmarkndea
Nordfyns BankDenmarknsbk
Nykredit BankDenmarknykb
Ringkjøbing LandbobankDenmarkring
Skjern BankDenmarkskjb
Spar Nord BankDenmarkspno
SwedbankDenmarkswed
Sparekassen Sjælland-FynDenmarkswes
SydbankDenmarksybk
Sparekassen DanmarkDenmarkvraa
SEBEstoniaeeuh
Coop PankEstoniaekrd
SwedbankEstoniahaba
LHV PankEstonialhvb
CitadeleEstoniaparx
LuminorEstoniariko
ÅlandsbankenFinlandaaba
Danske BankFinlanddaba
HandelsbankenFinlandhandhandnl2a
Aktia Bank FinlandFinlandhels
SäästöpankkiFinlanditel
NordeaFinlandndea
OPFinlandokoy
OmaSpFinlandomsp
POP PankkiFinlandpopf
S-PankkiFinlandsban
DKB - Deutsche KreditbankGermanybyla
TargobankGermanycmci
CommerzbankGermanycoba
ComdirectGermanycomd
DAB BankGermanydabb
Deutsche BankGermanydeut
Fidor BankGermanyfddo
Sparda-BankGermanygeno
HypoVereinsbankGermanyhyve
NorisbankGermanynors
N26Germanyntsb
PostbankGermanypbnk
RevolutGermanyrevorevolt21
SparkasseGermanysskn
Volksbank-RaiffeisenbankGermanyvolk
LuminorLatviariko
SEBLatviaunla
LuminorLithuaniaagbl
Šiaulių bankasLithuaniacbsb
SEBLithuaniacbvi
CitadeleLithuaniaindu
RevolutLithuaniarevorevolt21
ABN AMRONetherlandsabna
ASN BankNetherlandsasnbasnbnl21
INGNetherlandsingb
KnabNetherlandsknabknabnl2h
RabobankNetherlandsraborabonl2u
Regio BankNetherlandsrbrbrbrbnl21
SNS BankNetherlandssnsbsnsbnl2a
TriodosNetherlandstriotrionl2u
Danske BankNorwaydaba
DNBNorwaydnba
Etne SparebankNorwayetne
Fana SparebankNorwayfana
Flekkefjord SparebankNorwayflek
Østre Agder SparebankNorwaygjas
SpareBank 1 Hallingdal ValdresNorwayhaal
HandelsbankenNorwayhand
Haugesund SparebankNorwayhaug
BN Bank ASANorwaykbno
KLP BankenNorwayklpk
Landkreditt Bank ASNorwayland
Lillesands SparebankNorwaylill
SpareBank 1 Lom og SkjåkNorwaylosk
Luster SparebankNorwaylusk
SpareBank 1 Sørøst-Norge (Modum)Norwaymodu
NordeaNorwayndea
SpareBank 1 NordmøreNorwaynorv
OBOS-banken ASNorwayobos
Pareto Bank ASANorwayptaa
SpareBank 1 Ringerike HadelandNorwayriri
SpareBank 1 Østfold AkershusNorwayrygs
SbankenNorwaysbak
SpareBank 1 GudbrandsdalNorwaysgfs
SpareBank 1 ØstlandetNorwayshed
Skudenes & Aakra SparebankNorwayskaa
SpareBank 1Norwaysnow
SpareBank 1 Nord-NorgeNorwaysnow
Sparebanken Sogn og FjordaneNorwaysofj
Søgne og Greipstad SparebankNorwaysogs
Sparebanken MøreNorwayspar
Sparebanken VestNorwayspav
Sparebanken ØstNorwayspoe
SpareBank 1 SR-BankNorwayspro
SpareskillingsbankenNorwayspsk
Sparebanken SørNorwayspso
SpareBank 1 Sørøst-Norge (Telemark)Norwaysptl
SpareBank 1 SMNNorwaysptr
SwedbankNorwayswed
SpareBank 1 Sørøst-Norge (BV)Norwayvefo
SpareBank 1 Søre SunnmøreNorwayvold
Voss SparebankNorwayvosk
KutxabankSpainbask
BBVASpainbbva
BankinterSpainbkbk
Banco SabadellSpainbsab
Banco SantanderSpainbsch
ABANCASpaincagl
CaixaBankSpaincaix
IbercajaSpaincazr
INGSpainingd
Danske BankSwedendaba
LänsförsäkringarSwedenellf
SEBSwedenesse
FOREXSwedenforx
HandelsbankenSwedenhand
ICA BankenSwedenibca
NordeaSwedenndea
SkandiabankenSwedenskia
Sparbanken SydSwedenssyd
Swedbank & SparbankernaSwedenswed
Santander UKUnited Kingdomabby
BarclaysUnited Kingdombarc
Bank of ScotlandUnited Kingdombofs
Clydesdale BankUnited Kingdomclyd
The Co-operative BankUnited Kingdomcpbk
Danske BankUnited Kingdomdaba
First DirectUnited Kingdomhbuk
HSBC UK Business BankingUnited Kingdomhbuk
HalifaxUnited Kingdomhlfx
Lloyds BankUnited Kingdomloyd
HSBC UKUnited Kingdommidl
MonzoUnited Kingdommonz
Metro BankUnited Kingdommymb
NationwideUnited Kingdomnaia
Virgin One AccountUnited Kingdomnrnb
NatWestUnited Kingdomnwbk
NatWest InternationalUnited Kingdomnwbk
NatWest One AccountUnited Kingdomnwbk
Royal Bank of ScotlandUnited Kingdomrbos
The One AccountUnited Kingdomrbos
RevolutUnited Kingdomrevorevolt21
Starling BankUnited Kingdomsrlg
TSB BankUnited Kingdomtsbs
Ulster BankUnited Kingdomulsb

These 4 banks have country-specific bank logos

BankCountryBank Code in URL
Erste Sparkasse GeorgeAustria/at/giba
INGAustria/at/ingb
NordeaEstonia/ee/ndea
Česká spořitelnaCzech Republic/cz/giba
SbankenNorway/no/skia

Their URL has an additional path, eg /at/ followed by the bank code, for example, to get the regular logo for ING Austria the URL is:
https://assets.trustly.com/checkout/logos/banks/country/at/ingb/regular.png