Read account details.
GET/api/v1/accounts/:account-id
Reads details about an account, with balances where required. It is assumed that a consent of the PSU to this access is already given and stored on the ASPSP system.
NOTE: The account-id can represent a multicurrency account. In this case the currency code is set to "XXX".
Give detailed information about the addressed account.
Give detailed information about the addressed account together with balance information
Request
Path Parameters
This identification is denoting the addressed account. The account-id is retrieved by using a "Read Account List" call.
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
Success
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 [
]
account
object
Account details object.
This shall be filled, if addressable resource are created by the ASPSP on the /accounts endpoint.
Possible values: Value must match regular expression [A-Z]{2,2}[0-9]{2,2}[a-zA-Z0-9]{1,30}
IBAN of the account.
Basic Bank Account Number (BBAN) Identifier.
This data element can be used in the body of the consent request. Message for retrieving account access consent from this account. This data elements is used for payment accounts which have no IBAN. ISO20022: Basic Bank Account Number (BBAN).
Identifier used nationally by financial institutions, i.e., in individual countries, generally as part of a National Account Numbering Scheme(s), which uniquely identifies the account of a customer
Possible values: non-empty
, Value must match regular expression [A-Z]{3}
Account Currency Code.
Account name.
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.
ownerNames
object[]
nullable
List of owner names.
Account owner name.
Possible values: [owner
, legalRepresentative
, authorisedUser
]
The role of account owner
Product name of the bank for this account, proprietary definition.
ExternalCashAccountType1Code from ISO 20022.
Possible values: [enabled
, deleted
, blocked
]
Account Status.
The BIC associated to the account.
_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.
{
"account": {
"resourceId": "string",
"iban": "string",
"bban": "string",
"currency": "EUR",
"name": "Main Account",
"ownerName": "John Doe",
"ownerNames": [
{
"name": "string",
"role": "owner"
}
],
"product": "string",
"cashAccountType": "string",
"status": "enabled",
"bic": "string",
"_links": {
"balances": {
"href": "string"
},
"transactions": {
"href": "string"
}
}
}
}
{
"account": {
"resourceId": "cd573f22-fc4d-4aa8-a760-ef60bcdb312d",
"iban": "AT611904300234573201",
"bban": null,
"currency": "EUR",
"name": null,
"ownerName": "John Doe",
"ownerNames": null,
"product": "Main Product",
"cashAccountType": "",
"status": "enabled",
"bic": "NCBAALTXXXX",
"_links": {
"balances": {
"href": "/psd2/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80e/balances"
},
"transactions": {
"href": "/psd2/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80e/balances"
}
}
}
}
{
"account": {
"resourceId": "133dd898-31c7-4d91-bb75-b4512961fbdf",
"iban": "AT611904300234573201",
"bban": null,
"currency": "EUR",
"name": null,
"ownerName": "John Doe",
"ownerNames": null,
"product": "Main Product",
"cashAccountType": "",
"status": "enabled",
"bic": "NCBAALTXXXX",
"_links": {
"balances": {
"href": "/psd2/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80e/balances"
}
}
}
}
{
"account": {
"resourceId": "08ce547d-ef5d-4d07-a0dc-d1fd67e15e77",
"iban": "AT611904300234573201",
"bban": null,
"currency": "EUR",
"name": null,
"ownerName": "John Doe",
"ownerNames": null,
"product": "Main Product",
"cashAccountType": "",
"status": "enabled",
"bic": "NCBAALTXXXX",
"_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."
]
}
}
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
}