Introduction to Spending
Get an overview of your customers' regular and irregular expenses.
This report is appropriate for B2B and B2C use cases.
What it solves
To get to know the customer, it is important to know what their preferences are. This can be done with the Spending Report. In this report, all expenses are read out and categorized. This makes it possible to conclude, among other things, the customer’s lifestyle, which things he prefers, and on what he spends a lot or little money.
Spending Report
The spending report is based on the label SPENDINGREPORT
and its further sub-labels with a higher level of detail.
The report gives an overview of data such as the number of relevant transactions. What types of spending are there? How frequent and how high is the spending?
Other data includes the account information and the transactions used in the report. This is very helpful if you want to check the values, for example, as part of a detailed credit check.
In addition, further reports can be created based on an initial report. These continuous reports can then be provided with triggers that always compare the values of the previous report with the current one and look for defined changes.
This is useful if you have access to the client's account data over a longer period of time.
It is important that not only days but ideally months are considered.
Aggregations
A Spending Report with monthly sections can be generated as an Aggregation with the following query:
{
"aggregations": [
{
"alias": "Rent and Living",
"includeLabelGroup": [ "RENT_AND_LIVING" ]
},
{
"alias": "Insurances",
"includeLabelGroup": [ "INSURANCE" ]
},
{
"alias": "Savings",
"includeLabelGroup": [ "SAVINGS" ]
},
{
"alias": "Travel",
"includeLabelGroup": [ "TRAVEL" ]
},
{
"alias": "Tax",
"includeLabelGroup": [ "TAX" ]
},
{
"alias": "Bank and Credit",
"includeLabelGroup": [ "BANKING" ]
},
{
"alias": "Loan and Interest",
"includeLabelGroup": [ "LOANANDINTEREST" ]
},
{
"alias": "Mobility",
"includeLabelGroup": [ "MOBILITY" ]
},
{
"alias": "Shopping",
"includeLabelGroup": [ "SHOPPING" ]
},
{
"alias": "Entertainment",
"includeLabelGroup": [ "ENTERTAINMENT" ]
},
{
"alias": "Health and Wellness",
"includeLabelGroup": [ "HEALTHANDWELLNESS" ]
},
{
"alias": "Children",
"includeLabelGroup": [ "CHILDREN" ]
},
{
"alias": "Personnel Costs",
"includeLabelGroup": [ "PERSONNEL_COST" ],
"excludeLabelGroup": [ "TRAVEL_EXPENSES" ]
},
{
"alias": "Travel Expenses",
"includeLabelGroup": [ "TRAVEL_EXPENSES" ]
},
{
"alias": "Legal Expenses",
"includeLabelGroup": [ "LEGAL" ]
},
{
"alias": "Billings",
"includeLabelGroup": [ "BILLING" ]
},
{
"alias": "Rebookings",
"includeLabelGroup": [
"REBOOKING_SPENDING",
"PRIVATE_WITHDRAWAL_SPENDING",
"PRIVATE_DEPOSIT_SPENDING"
]
}
]
}
Used data fields
Spending transactions of the customer are used for this purpose. This includes data like IBAN
, account holder name
, counterpart name
, purpose
, amount,
and so on.
The report response itself is divided into the following sections.
Main Section
The main part of the report can be found at $.reports.spending
and the type
will be SPENDING
.
This gives you a quick overview of the transactions used in the report through aggregated values that can serve as a summary.
A full API schema can be seen here: https://docs.finapi.io/?product=di#get-/cases/-caseId-/reports
Field | Description | Mandatory |
---|---|---|
| Timestamp of when the report was created, in the format ' | yes |
| ID of the case in which the report was created. | yes |
| Defines the type of the report. | yes |
| Timestamp of the start date of the reporting period under review in the format ' | no |
| Timestamp of the end date of the reporting period under review in the format ' | no |
| The number of full days, that the reporting period under review contains. | no |
| Timestamp of the date, when user's first transaction took place in the report period under review in the format ' | no |
| The number of the user transactions, that took place in the report period under review. This field takes into consideration all the transactions of the user, irrespectively of the assigned to them label. | no |
| The total count of positive transactions in the report. | yes |
| The total count of negative transactions in the report. | yes |
| The total income. | yes |
| The total spending. | yes |
| The total balance. | yes |
| List of accounts-related data with the relevant transactions information. | no |
| List of reports, created automatically with the specified frequency (defined by | no |
Account Data Section
The account data section can be found under the accountData
field.
It contains data about the account at the first level.
If more than one account is included in the report, they will be displayed individually in the list.
Field | Description | Mandatory |
---|---|---|
| Name of the bank. | yes |
| Unique identifier of the Bank, generated by finAPI. | yes |
| IBAN of the bank account. | no |
| Unique identifier of the bank account belonging to the imported bank connection. | no |
| Date of the account first transaction, regardless of the report period under review, in the format ' | |
| Type of the account. Can be:
| |
| List of transactions related to the chosen report type. | no |
Transactions Section
This section displays the transactions used in the report and can be found under the accountData
element in the field transactions
.
Please note that this list may be very long, especially for business accounts.
Depending on what the report is used for, the transactions can be retrieved for later review or documentation, or they can be turned off. The latter would be the case, for example, if you only want to do a quick check of the overall data and do not need any details.
If transactions are not of interest, you can also disable this section by giving the query parameter withTransactions=false
to the report.
The transactions include the following values.
Field | Description | Mandatory |
---|---|---|
| Value date in the format ' | yes |
| Bank booking date in the format ' | yes |
| Transaction amount. | yes |
| Transaction purpose. | no |
| Transaction UUID. | no |
| Counterpart name. | no |
| Counterpart account number. | no |
| Counterpart IBAN. | no |
| Counterpart BLZ. | no |
| Counterpart BIC. | no |
| Counterpart bank name. | no |
| A list of labels assigned by the system. This does not contain the complete label structure in the sense of level of detail. | no |
| Extracted details for transactions with related to overdraft interests. | no |
| Extracted details for transactions with related to wage seizure. It contains the seizure amount extracted from the purpose, when possible. | no |
| Chargeback amount extracted from the transaction’s purpose. When it is possible to extract the chargeback amount, the extracted value is used in the calculations of the other fields and monthly objects. When extraction is not possible, the amount of the transaction is used instead. |
Monthly Data (Aggregations)
Monthly Data are aggregations generated over the report period for specific sub-aspects of the report.
These are reported on a monthly basis and made available as a summary.
Field | Description | Mandatory |
---|---|---|
| This field contains a list of months for which finAPI has complete records available. This automatically means that the first and the last month of the report period are omitted from the list. | no |
| Monthly aggregations of various data are listed under this field. These reflect the monthly development of certain criteria in the transactions. The month, the value, the number of transactions, and the list of transaction ids behind it are always indicated. If If All accounts are taken into consideration for the monthly objects. | no |
Subelements of Monthly Data
This section describes the subfields of the Monthly Data section that can appear in the report.
Additionally, aggregations are provided for the sections behind the subelement, which include values such as totalMonthlyAmounts
, minTotalMonthlyAmount
, maxTotalMonthlyAmount
, averageTotalMonthlyAmount
,medianTotalMonthlyAmount
,totalTransactionsCount
and totalTransactionsAmount
.
Here we take into consideration the data from both complete and incomplete months inside the report period under review.
Field | Description | Mandatory |
---|---|---|
| Spending data (for all the kinds of spending ( | yes |
| Rebooking spending of the customer between 2 own or accessible accounts or private withdrawals. This part is only fully available if an extended analysis has been performed before. | no |
| Rent and living spending data, organized by months. | no |
| Insurance spending data, organized by months. | no |
| Bank and credit spending data, organized by months. | no |
| Loan and interest spending data, organized by months. | no |
| Savings spending data, organized by months. | no |
| Travel spending data, organized by months. | no |
| Tax spending data, organized by months. | no |
| Mobility spending data, organized by months. | no |
| Shopping spending data, organized by months. | no |
| Entertainment spending data, organized by months. | no |
| Health and wellness spending data, organized by months. | no |
| Children spending data, organized by months. | no |
| Personnel costs for company accounts. | no |
| Expenses for traveling by the employer for company accounts. | no |
| Expenses, that are related to or in compliance with laws and legal regulations. | no |
| Expenses, related to billings or material costs. | no |