Advisory
The Advisory product lets you retrieve metrics computed on end user’s banking data.
API endpoint
Authentication: endpoint in this page requires header authentication with a user token.
Get advisory data for the user
GET
https://{domain}.biapi.pro/2.0/users/{userId}/advisory
Get advisory metrics computed on end user’s banking data by user ID.
Path Parameters
Name | Type | Description |
---|---|---|
userId* | Integer | ID of the user |
Response body: UserAdvisory object
Data model
UserAdvisory object
Property | Type | Description |
---|---|---|
| Integer | Id of the user. |
| DateTime | DateTime of the last Advisory run. |
| String | Currency codes (ISO 4217) of the analyzed accounts. |
| Array of Period objects | List of periods. |
Period object
Property | Type | Description |
---|---|---|
| String | Month analyzed in format YYYY_MM e.g. 2023_12. |
| Integer | Number of transactions in the analyzed month. |
| Array of Integer | List of account ids. |
| Date | Date of the first analyzed transaction in the period. |
| Date | Date of the last analyzed transaction in the period. |
| MonetaryAmount object | Recurring revenues minus recurring expenses. |
| MonetaryAmount object | Net balance changed relatively to last month. A positive value corresponds to an increase in balance. |
| Array of Event objects | List of events. |
| Array of TransactionTypeSummary objects | List of transaction type summaries. |
| Array of TransactionCategory objects | List of transaction categories. |
Event object
Property | Type | Definition |
---|---|---|
| Integer | Number of occurrences. |
| TransactionEvent string | Name of the detected event. |
TransactionTypeSummary object
Property | Type | Definition |
---|---|---|
| TransactionType string | Type of transaction. |
| Integer | Number of transactions of this type in the analyzed month. |
| Integer | Number of expenses of this type in the analyzed month. |
| MonetaryAmount object | Sum of expenses of this type in the analyzed month. |
| Integer | Number of incomes of this type in the analyzed month. |
| MonetaryAmount object | Sum of incomes of this type in the analyzed month. |
| MonetaryAmount object | Sum of transactions of this category in the analyzed month. |
TransactionCategory object
Property | Type | Definition |
---|---|---|
| TransactionCategory string | Category of the transaction. |
| Integer | Number of transactions of this category in the analyzed month. |
| MonetaryAmount object | Sum of transactions of this category in the analyzed month. |
TransactionCateogry Values
Value | Description |
---|---|
| A recurring earning, such as salaries, pensions, and rental income. Only transactions with a positive value (e.g. inflows) can be categorized as revenue. |
| Housing related recurring expenses. Includes energy and utility. Excludes rental income. Only transactions with a negative value can be categorized as housing. |
| Payments towards the reimbursement of a loan, consumer credit or mortgage. Only transactions with a negative value can be categorized as loans. |
| Child raises expenses, includes child_care and child_support. Only transactions with a negative value can be categorized as household. |
Forward compatibility requirement: new value related to child category may be added in the future.
TransactionEvent Value
Value | Description |
---|---|
| User's overdraft exceeds the allowed amount. |
MonetaryAmout object
Property | Type | |
---|---|---|
| String | Currency codes (ISO 4217) of the analyzed accounts. EUR only. |
| String | Amount value. Rounded to two decimal places. |
Last updated