Read account list
GET/api/v1/accounts
Read the identifiers of the available payment account together with booking balance information, depending on the consent granted.
It is assumed that a consent of the PSU to this access is already given and stored on the ASPSP system. The addressed list of accounts depends then on the PSU ID and the stored consent addressed by consentId, respectively the OAuth2 access token.
Returns all identifiers of the accounts, to which an account access has been granted to through the /consents endpoint by the PSU. In addition, relevant information about the accounts and hyperlinks to corresponding account information resources are provided if a related consent has been already granted.
Remark: Note that the /consents endpoint optionally offers to grant an access on all available payment accounts of a PSU. In this case, this endpoint will deliver the information about all available payment accounts of the PSU at this ASPSP.
Request
Query Parameters
If contained, this function reads the list of accessible payment accounts including the booking balance, if granted by the PSU in the related consent and available by the ASPSP. This parameter might be ignored by the ASPSP.
Header Parameters
- GET
- POST
- PUT
- PATCH
- DELETE
ID of the request, unique to the call, as determined by the initiating party.
This then contains the consentId of the related AIS consent, which was performed prior to this payment initiation.
Is contained if and only if the OpenBankingGateway.Models.Accounts.AISRequestHeaders.Signature element is contained in the header of the request.
A signature of the request by the TPP on application level. This might be mandated by ASPSP.
A signature of the request by the TPP on application level. This might be mandated by ASPSP.
Possible values: Value must match regular expression \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
The forwarded IP Address header field consists of the corresponding HTTP request IP Address field between PSU and TPP. It shall be contained if and only if this request was actively initiated by the PSU.
TThe forwarded IP Port header field consists of the corresponding HTTP request IP Port field between PSU and TPP, if available.
The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.
The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.
The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.
The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.
The forwarded Agent header field of the HTTP request between PSU and TPP, if available.
Possible values: [GET
, POST
, PUT
, PATCH
, DELETE
]
HTTP method used at the PSU ? TPP interface, if available. Valid values are:
UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available. UUID identifies either a device or a device dependant application installation. In case of an installation identification this ID needs to be unaltered until removal from device.
The forwarded Geo Location of the corresponding http request between PSU and TPP if available.
Responses
- 200
- 400
- 401
- 403
- 500
OK. In case, no account is accessible, the ASPSP shall return an empty array.
As this is also considered a positive response, the Response code must still be 200.
Response Headers
X-Request-ID
string
ID of the request, unique to the call, as determined by the initiating party.
- application/json
- Schema
- Example (from schema)
- Example 1. With Balance and Transactions grant
- Example 2. With Balance grant
- Example 3. With Transactions grant
Schema
Array [
Array [
]
]
accounts
object[]
required
List of accounts with details.
This shall be filled, if addressable resource are created by the ASPSP on the /accounts or /card-accounts endpoint.
IBAN of the account.
Basic Bank Account Number (BBAN) Identifier.
Possible values: non-empty
, Value must match regular expression [A-Z]{3}
Account Currency Code.
Account name.
Product Name of the Bank for this account, proprietary definition.
The BIC associated to the account.
Name of the legal account owner. If there is more than one owner, then e.g. two names might be noted here. For a corporate account, the corporate name is used for this attribute. Even if supported by the ASPSP, the provision of this field might depend on the fact whether an explicit consent to this specific additional account information has been given by the PSU.
balances
object[]
nullable
A list of balances regarding this account,
e.g. the current balance, the last booked balance.
The list might be restricted to the current balance.
Possible values: [closingBooked
, expected
, openingBooked
, interimAvailable
, interimBooked
, forwardAvailable
, nonInvoiced
]
balanceAmount
object
A single balance element. For showing in transalist will only be used for Booked transactions.
Possible values: non-empty
, Value must match regular expression [A-Z]{3}
Currency Code.
Possible values: non-empty
The amount given with fractional digits, where fractions must be compliant to the currency definition. Up to 14 significant figures. Negative amounts are signed by minus. The decimal separator is a dot.
A flag indicating if the credit limit of the corresponding account is included in the calculation of the balance, where applicable.
_links
object
Links to the account, which can be directly used for retrieving account information from this dedicated account.
Links to "balances" and/or "transactions"
These links are only supported, when the corresponding consent has been already granted.
balances
object
Link to a resource.
href Entry.
transactions
object
Link to a resource.
href Entry.
{
"accounts": [
{
"resourceId": "string",
"iban": "string",
"bban": "string",
"currency": "EUR",
"name": "Main Account",
"product": "Main Product",
"cashAccountType": "string",
"bic": "string",
"ownerName": "John Doe",
"balances": [
{
"balanceType": "closingBooked",
"balanceAmount": {
"currency": "EUR",
"amount": "5877.78"
},
"creditLimitIncluded": true
}
],
"_links": {
"balances": {
"href": "string"
},
"transactions": {
"href": "string"
}
}
}
]
}
{
"accounts": [
{
"resourceId": "552b402f-eb10-42a0-9111-3c15e4b2e217",
"iban": "AT611904300234573201",
"bban": null,
"currency": "EUR",
"name": "Main Account",
"product": "Main Product",
"cashAccountType": "",
"bic": "NCBAALTXXXX",
"ownerName": "John Doe",
"balances": [
{
"balanceType": "forwardAvailable",
"balanceAmount": {
"currency": "EUR",
"amount": "5877.78"
},
"creditLimitIncluded": false
}
],
"_links": {
"balances": {
"href": "/psd2/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80e/balances"
},
"transactions": {
"href": "/psd2/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80e/balances"
}
}
}
]
}
{
"accounts": [
{
"resourceId": "a0eea350-b932-4252-92a7-25e5deaa6466",
"iban": "AT611904300234573201",
"bban": null,
"currency": "EUR",
"name": "Main Account",
"product": "Main Product",
"cashAccountType": "",
"bic": "NCBAALTXXXX",
"ownerName": "John Doe",
"balances": [
{
"balanceType": "forwardAvailable",
"balanceAmount": {
"currency": "EUR",
"amount": "5877.78"
},
"creditLimitIncluded": false
}
],
"_links": {
"balances": {
"href": "/psd2/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80e/balances"
}
}
}
]
}
{
"accounts": [
{
"resourceId": "0cac9d3f-1a75-40d2-b610-953a4ffc0c7d",
"iban": "AT611904300234573201",
"bban": null,
"currency": "EUR",
"name": "Main Account",
"product": "Main Product",
"cashAccountType": "",
"bic": "NCBAALTXXXX",
"ownerName": "John Doe",
"_links": {
"transactions": {
"href": "/psd2/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80e/balances"
}
}
}
]
}
Bad Request
Response Headers
Location
string
Location of the created resource.
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
result
object
nullable
property name*
string[]
nullable
string
{
"responseCode": 0,
"responseMessage": "string",
"responseType": "string",
"result": {}
}
{
"responseCode": 400,
"responseMessage": "One or more validation errors occurred.",
"responseType": "InvalidRequest",
"result": {
"customerNumber": [
"CustomerNumber is required.",
"CustomerNumber should be not empty."
]
}
}
Unauthorized
Forbidden
Server Error
Response Headers
Location
string
Location of the created resource.
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"responseCode": 0,
"responseMessage": "string",
"responseType": "string",
"result": "string"
}
{
"responseCode": 500,
"responseMessage": "One or more errors occurred. (We have identified an unexpected error on our side.)",
"responseType": "InternalServerError",
"result": null
}