Getting started

List banks

This guide demonstrates how to fetch all Swedish banks in the Open Banking Platform.

Variables and constants used in the guide

NameDescription
accessTokenAn access token with scope "aspspinformation private".
xRequestIDMost requests require the header X-Request-ID, which is a uuid. This will be a unique identifier of your request and will be useful in case you need support. Make sure to create a new GUID for every individual request. In this guide, we assume that you store this value in the variable xRequestID.

Endpoint

GET /psd2/aspspinformation/v1/aspsps?isoCountryCodes=SE
javascript

Request headers

Accept: "application/json",
Authorization: "Bearer " + accessToken,
Content-Type: "application/json",
X-Request-ID: xRequestID
javascript

Result

banks = response.body.aspsps;
javascript

You now have a list of banks that you can use to create a UI that let your user select a bank to authenticate to.