Account Info Report
This report shows all details about an account.
URL and Request Body Structure of an Account Info Report
POST /insights/v1/reports/account-info/create HTTP/1.1
Content-Type: application/json; charset=utf-8
Authorization: Token <Token>
Host: <Host>
{
"insights_consumer_id": String,
"insights_account_ids": ?Array<String>,
"excluded_insights_account_ids": ?Array<String>
}
The insights_consumer_id
parameter identifies the consumer whose transactions are used to generate the report.
The list of accounts, identified by the insights_account_id
, which will filter all transactions from the consumer to only those accounts. If missing, all accounts of the insights_consumer_id
will be used to generate the report(s). The insights_account_ids
parameter must be empty if the excluded_insights_account_ids
parameter is set.
The list of insights_account_id
s which will be excluded from the report generation. The excluded_insights_account_ids
parameter must be empty if the insights_account_ids
parameter is set.
Response Structure of Account Info Report
{
"data": {
"reports": Array<AccountInfo>
}
}
The list of reports generated depending on the requested parameters.
AccountInfo
{
"type": "ACCOUNT_INFOS",
"insights_consumer_id": String,
"insights_account_ids": Array<String>,
"account_alias": ?String,
"holder_name": ?String,
"currency": ?String,
"iban": ?String,
"account_number": ?String,
"bic": ?String,
"bank_code": ?String,
"bank_name": ?String,
"country": ?String,
"account_type": ?Enum<'DEFAULT', 'SAVING', 'CREDITCARD', 'DEPOT'>,
"transfer_type": ?Enum<'NONE', 'DOMESTIC', 'FULL', 'REFERENCE', 'RESTRICTED'>,
"refreshed_at": DateTime,
"accounts_group_id": ?String,
"oldest_transaction_date": ?Date,
"consent_expected_expiry_date": ?Date,
"bank_country": ?String,
"bank_krn": ?String,
"integration_krn": ?String,
"sub_integration_krn": ?String,
"labels": ?{
<label_key>: String,
}
}
The insights_consumer_id
is the consumer identifier for the account(s) used in this report.
The insights_account_ids
is used to identify a specific account within Account Insights. For this report there will always only be a single entry in this list.
An alternative name for the account. A description that the consumer set for this account. It should be displayed if it is set, because the consumer can relate to it.
The account holder name. The format of the string is unknown, as it depends on the bank.
Furthermore, there is no guarantee for the correctness of the name, because some banks allow the consumer to change of the name inside the banking portal.
Indicates the type of the account.
DEFAULT
- A regular account.SAVING
- A savings account.CREDITCARD
- A credit card account.DEPOT
- A depot for broking or similar.
Indicates if the account can be used for a transaction or not.
NONE
- It is not possible to use the account for transfers.DOMESTIC
- The account can only be used for domestic transfers.FULL
- The account is fully usable.REFERENCE
- The account can only be used for transfers to one specific account.RESTRICTED
- The account might be under protection from execution or something similar. Transfers are possible, but with restricted functionality (e.g. limited transfer amount).
The refreshed_at
shows when the data for this account were last refreshed.
Accounts that are connected to other accounts are grouped by having the same id. Bank accounts with the same accounts_group_id
are received from the same bank-account.
If transactions exist for this account, returns the date for the oldest available transaction.
The expected expiry date of a stored consent. Present if there is a stored consent for the account in question.
Will be in the format of YYYY-MM-DD
according to ISO 8601.
Country of the bank that was used during the refresh of this account. Further information can be found here.
The bank_krn
property holds the bank krn, which is an identifier of the bank that was used during the refresh of this account. Further information can be found here.
Any amount of labels consisting of key-value pairs.
Example request
{
"insights_consumer_id": "6c03aff-8fa0046-ffae74-b0cbc-4d5fd1"
}
Example response
{
"data": {
"reports": [
{
"type": "ACCOUNT_INFOS",
"insights_consumer_id": "6c03aff-8fa0046-ffae74-b0cbc-4d5fd1",
"insights_account_ids": [
"3b3d678f-66b7-4b23-a2a5-0bfd275e86a1"
],
"account_alias": "Girokonto(KarlMustermann)",
"holder_name": "Karl Mustermann",
"bank_name": "N26",
"currency": "EUR",
"country": "DE",
"iban": "DE06000000000023456789",
"bic": "SFRTDE20XXX",
"account_type": "DEFAULT",
"transfer_type": "FULL",
"refreshed_at": "2021-06-15T09:22:02.523Z",
"oldest_transaction_date": "2021-02-15",
"consent_expected_expiry_date": "2021-07-26",
"labels": {
"market": "de"
}
}
]
}
}