Bank accounts
The Bank product lets you retrieve bank accounts of end users. Bank accounts are associated with a connection, and a connector (a bank).
API endpoints
Authentication: endpoints listed in this page require header authentication with a user token.
List bank accounts
GET
https://{domain}.biapi.pro/2.0/users/{userId}/accounts
Path Parameters
Name | Type | Description |
---|---|---|
userId* | Integer or "me" | ID of the related user. |
Query Parameters
Name | Type | Description |
---|---|---|
all | Value-less | Flag to access disabled accounts. |
Response body: BankAccountsList object
Get a bank account
GET
https://{domain}.biapi.pro/2.0/users/{userId}/accounts/{accountId}
Get a single bank account by ID.
Path Parameters
Name | Type | Description |
---|---|---|
accountId* | Integer | ID of the bank account. |
userId* | Integer or "me" | ID of the related user. |
Response body: BankAccount object
Bank account ressources partially support an update operation to handle activation/deactivation, or to override some display-related properties of accounts:
Update a bank account
POST
https://{domain}.biapi/pro/2.0/users/{userId}/accounts/{accountId}
Update a single bank account by ID.
Request body: BankAccountUpdateRequest object
Path Parameters
Name | Type | Description |
---|---|---|
accountId* | Integer | ID of the bank account. |
userId* | Integer | ID of the related user. |
Query Parameters
Name | Type | Description |
---|---|---|
all | Value-less | Add this flag to access a disabled bank accounts. |
Response body: BankAccount object
Life cycle
Activation
Bank accounts can be in a disabled or enabled state.
For legal compliance, accounts are disabled by default. Also, disabling account will result in the deletion of account child resources (transactions, investments, market orders, balances).
Querying
Disabled accounts will only appear when passing the all
parameter:
Enabling
To enable one such account, it is necessary to perform a POST
request on that account, with the all
parameter and { "disabled": false }
.
Please note that this action represents the PSU's consent.
Webhooks
Accounts fetched
An ACCOUNTS_FETCHED
webhook is emitted during a sync after bank accounts have been synchronized, but before the transactions are processed.
Webhook request :
Property | Type | Description |
---|---|---|
| User object | The user related to the sync. |
| Connection object | Connection. |
| Connector object | The connector associated with the connection. |
| Array of ConnectionSource objects | The activated connections sources that were synced. |
| Array of BankAccount objects | The activated bank accounts sources that were synced. |
Accounts synced
An ACCOUNT_SYNCED
webhook is emitted during a sync after a bank account was processed, including new transactions.
Webhook request: BankAccount object with the following additional properties:
Property | Type | Description |
---|---|---|
| Array of Investment objects | The new investments that were found. |
| Array of Pocket objects | On each |
| Array of Recipient objects | (Deprecated) The new recipients that were found (for transfer usage). |
| Array of Transaction objects | The new transactions that were found. |
| Array of Transfer objects | (Deprecated) The new transfers that were found. |
Account disabled
An ACCOUNT_DISABLED
webhook is emitted after a bank account was disabled. The disabled
property in the request contains the deactivation date.
Webhook request: BankAccount object
Account enabled
An ACCOUNT_ENABLED
webhook is emitted after a bank account was enabled. The disabled
property in the request will be null
.
Webhook request: BankAccount object
Account found
An ACCOUNT_FOUND
webhook is emitted after a new bank account was discovered. The account is disabled
by default.
Webhook request:
Property | Type | Description |
---|---|---|
| Integer | ID of the bank account. |
| Integer | ID of the related user. |
| Integer | ID of the related connection. |
| DateTime | New accounts are disabled by default, so the property is set to the discovery date. |
| AccountTypeName string | Technical code of the account type. |
Data model
BankAccountsList object
Property | Type | Description |
---|---|---|
| Array of BankAccount objects | List of bank accounts. |
| Object | Associative map of ISO currency codes to the total balance (decimal number) of accounts in the given currency. |
BankAccount object
Property | Type | Description |
---|---|---|
| Integer | ID of the bank account. |
| Integer or null | ID of the related connection. |
| Integer or null | ID of the related user. |
| Integer or null | ID of the related connection source. |
| Integer or null | ID of the parent account. |
| String or null | Account number. |
| String | Original name of the account, as seen on the bank. |
| Decimal or null | Balance of the account. |
| Decimal or null | Amount of coming operations not yet debited. |
| Boolean | Whether the bank account should be presented. |
| DateTime or null | Last successful update of the account. |
| DateTime or null | If set, this account is not found on the website anymore. |
| DateTime or null | If set, this account has been disabled by user and will not be synchronized anymore. |
| String or null | Account IBAN. |
| Currency object or null | Account currency. |
| AccountType object | Technical code of the account type. |
| Integer | ID of the account type. |
| Integer | This account has been bookmarked by user. |
| String | The name of the account. |
| String or null | If the last update has failed, the error code. |
| BankAccountUsage string | Account usage. If not overridden, the value of |
| BankAccountOwnership string or null | (Deprecated) Relationship between the credentials owner and the account. |
| String or null | Name of the company holding the employee savings of the account. |
| Loan object or null | For |
Available expands
The following parameters can be used for response properties expansion:
Property | Type | Description |
---|---|---|
| Connection object | The connection associated with this bank account. |
BankAccountUsage values
Value | Description |
---|---|
| Private account. |
| Professional account. |
| No usage detail. |
Forward compatibility requirement: additional usages may be added in the future. When implementing usage handling, always fallback to a generic case for unknown values.
BankAccountOwnership values (deprecated)
Value | Description |
---|---|
| Account holder. |
| Holder on a joint account. |
| Account authorized agent. |
Forward compatibility requirement: additional ownership values may be added in the future. When implementing ownership handling, always fallback to a generic case for unknown values.
Loan object
Property | Type | Description |
---|---|---|
| Decimal or null | Total amount of the loan. |
| Decimal or null | Amount of the loan not yet released and still available. |
| Decimal or null | Amount of the load already used. |
| Date or null | Subscription date of the loan. |
| Date or null | Estimated end date of the loan. |
| Date or null | When starts the repayment of the loan.
In case of deferred loans, some fees could be payed by the borrower before the first repayment term planned at this |
| Boolean or null | (beta) True if loan repayment has not yet begun. |
| Decimal or null | Amount of the next payment. |
| Date or null | Date of the next payment. |
| Decimal or null | Rate of the loan. |
| Integer or null | Number of payments still due. |
| Integer or null | Number of payments done. |
| Integer or null | Total number of payments. |
| Decimal or null | Amount of the last payment. |
| Date or null | Date of the last payment. |
| String or null | Name of the debited account. |
| String or null | Label of the insurance. |
| Decimal or null | Amount of the loan's insurance. |
| Decimal or null | Rate of the insurance (between 0 and 1). |
| Integer or null | Duration of the loan, in months. |
| String | Type of the loan: |
BankAccountUpdateRequest object
Name | Type | Required | Description |
---|---|---|---|
| Boolean | No | Whether the bank account should be displayed and included in aggregated metrics. |
| String | No | Display name of the account. |
| Boolean | No | Whether the bank account should be synchronized. |
| Boolean | No | Whether the bank account is bookmarked. |
| BankAccountUsage string | No | Account usage. |
Last updated