latestSwagger 2.02026-08-20196638916.1 KB

23d8982b533d

Finance Management.Statistic
ENTERPRISE

Query statistics

By querying the statistics endpoint, an API customer can select the specific types of data to access. The statistics query should be posted in the request body and you can specify any of the properties available to filter the result set. Defining multiple properties will yield an AND operation, and specifying multiple values of a property will yield an OR operation.

Transfers and upcoming transactions are always excluded from statistics calculations.

Additionally statistics can be generated on further filtered set of transactions. They can be filtered using tags that should be provided in tags field in request payload. When defining multiple tags they are treated as a logical expression with OR operator e.g. ["Cinema", "Theater"] would be treated as Cinema OR Theater. If no tags are provided there is no filtering.

Note: Monthly statistics will be calculated only with the resolution that the user has in the user settings (MONTHLY, MONTHLY_ADJUSTED), and not for both. Note: YEARLY resolution is aggregated based on the resolution that the user has in the user settings. With MONTHLY it will be the calendar year and with MONTHLY_ADJUSTED it will be adjusted based on the users' periodbreakday.

Statistics types

TypeValue of description fieldDescription of typeAvailable resolutions
balances-by-accountIdentifier of an accountBalances over time by each accountDAILY MONTHLY MONTHLY_ADJUSTED
balances-by-account-type-groupThe type group nameBalances over time by each account group. CHECKING, CREDIT_CARD and OTHER account type will map to CARDS_AND_ACCOUNTS. MORTGAGE and LOAN map to LOANS. INVESTMENT, PENSION and SAVINGS map to SAVINGSDAILY WEEKLY MONTHLY MONTHLY_ADJUSTED
carbon-by-categoryIdentifier of a categorySum of carbon footprints per period in each category. <em>Note: This feature is not enabled by default. Speak to your account manager for more information.</em>MONTHLY MONTHLY_ADJUSTED DAILY WEEKLY QUARTERLY
carbon-by-primary-categoryIdentifier of a primary categoryCombined sum of all carbon footprints of child-categories per period in each primary category. <em>Note: This feature is not enabled by default. Speak to your account manager for more information.</em>MONTHLY MONTHLY_ADJUSTED DAILY WEEKLY QUARTERLY
carbon-by-tagCarbon tagCombined sum of all carbon footprints grouped by tags placed in the transaction notes field. <em>Note: This feature is not enabled by default. Speak to your account manager for more information.</em>YEARLY MONTHLY MONTHLY_ADJUSTED QUARTERLY WEEKLY DAILY
expenses-by-brandIdentifier of a brandThe sum of expenses by brand <em>Note: This feature is not enabled by default. Speak to your account manager for more information.</em>YEARLY MONTHLY MONTHLY_ADJUSTED QUARTERLY WEEKLY DAILY
expenses-by-brand/by-countIdentifier of a brandThe amount of expenses by brand <em>Note: This feature is not enabled by default. Speak to your account manager for more information.</em>YEARLY MONTHLY MONTHLY_ADJUSTED QUARTERLY WEEKLY DAILY
expenses-by-brand/by-categoryIdentifier of a categoryThe amount of expenses by brand in each category <em>Note: This feature is not enabled by default. Speak to your account manager for more information.</em>YEARLY MONTHLY MONTHLY_ADJUSTED QUARTERLY WEEKLY DAILY
expenses-by-brand-by-category/by-countIdentifier of a categoryCount of expenses per brand in each category <em>Note: This feature is not enabled by default. Speak to your account manager for more information.</em>YEARLY MONTHLY MONTHLY_ADJUSTED QUARTERLY WEEKLY DAILY
expenses-by-categoryIdentifier of a categorySum of expenses per period in each categoryMONTHLY MONTHLY_ADJUSTED YEARLY DAILY WEEKLY QUARTERLY
expenses-by-category/by-countIdentifier of a categoryCount of expenses per period in each categoryYEARLY MONTHLY MONTHLY_ADJUSTED DAILY WEEKLY QUARTERLY
expenses-by-cost-structureThe type of expenseThe sum of expenses per period in each cost type <em>Note: This feature is not enabled by default. Speak to your account manager for more information.</em>DAILY, MONTHLY, MONTHLY_ADJUSTED
expenses-by-primary-categoryIdentifier of a primary categoryCombined sum of all expenses of child-categories per period in each primary categoryMONTHLY MONTHLY_ADJUSTED YEARLY DAILY WEEKLY QUARTERLY
expenses-by-primary-category/by-countIdentifier of a primary categoryCombined count of all expenses of child-categories per period in each primary categoryYEARLY MONTHLY MONTHLY_ADJUSTED DAILY WEEKLY QUARTERLY
expenses-by-tagCategory tagCombined sum of all expenses grouped by tags placed in the transaction notes fieldYEARLY MONTHLY MONTHLY_ADJUSTED QUARTERLY WEEKLY DAILY
expenses-by-tag/by-countCategory tagCount of all expenses grouped by tags placed in the transaction notes fieldYEARLY MONTHLY MONTHLY_ADJUSTED QUARTERLY WEEKLY DAILY
expenses-by-subscriptionIdentifier of a subscriptionSum of the expenses by subscription <em>Note: This feature is not enabled by default. Speak to your account manager for more information.</em>YEARLY MONTHLY MONTHLY_ADJUSTED QUARTERLY
expenses-by-subscription/averageIdentifier of a subscriptionAverage amount of the expenses by subscription <em>Note: This feature is not enabled by default. Speak to your account manager for more information.</em>YEARLY MONTHLY MONTHLY_ADJUSTED QUARTERLY
income-by-categoryIdentifier of a categorySum of Incomes per period in each categoryYEARLY QUARTERLY MONTHLY MONTHLY_ADJUSTED WEEKLY DAILY
income-by-category/by-countIdentifier of a categoryCount of all Incomes per period in each category <em>Note: This feature is not enabled by default. Speak to your account manager for more information.</em>YEARLY QUARTERLY MONTHLY MONTHLY_ADJUSTED WEEKLY DAILY
income-and-expensesIdentifier of typeSum of transactions per period for category typeYEARLY MONTHLY MONTHLY_ADJUSTED DAILY
income-by-tagCategory tagCombined sum of all incomes grouped by tags placed in the transaction notes fieldYEARLY MONTHLY MONTHLY_ADJUSTED QUARTERLY WEEKLY DAILY
income-by-tag/by-countCategory tagCount of all incomes grouped by tags placed in the transaction notes fieldYEARLY MONTHLY MONTHLY_ADJUSTED QUARTERLY WEEKLY DAILY
incoming-transfers-by-categoryIdentifier of a categorySum of incoming transfers per period in each categoryYEARLY MONTHLY MONTHLY_ADJUSTED QUARTERLY WEEKLY DAILY
incoming-transfers-by-category/by-countIdentifier of a categoryCount of incoming transfers per period in each categoryYEARLY MONTHLY MONTHLY_ADJUSTED QUARTERLY WEEKLY DAILY
left-to-spendThe dateWhat is left of income minus expenses in a monthly period, to a minimum of 0DAILY MONTHLY MONTHLY_ADJUSTED
left-to-spend-averageThe dateAverage left to spend on the day of the month for the last 6 monthly periods. If a requested day doesn't exist in a month it defaults to the last day of that month. For example: if the requested day is 31 it returns the left to spend for day 28 in FebruaryMONTHLY MONTHLY_ADJUSTED
outgoing-transfers-by-categoryIdentifier of a categorySum of outgoing transfers per period in each categoryYEARLY MONTHLY MONTHLY_ADJUSTED QUARTERLY WEEKLY DAILY
outgoing-transfers-by-category/by-countIdentifier of a categoryCount of outgoing transfers per period in each categoryYEARLY MONTHLY MONTHLY_ADJUSTED QUARTERLY WEEKLY DAILY
safe-to-spendDay of the periodWhat is left of income minus expenses - including past and future recurring transactions for that month period <em>Note: This feature is not enabled by default. Speak to your account manager for more information.</em>DAILY MONTHLY MONTHLY_ADJUSTED
post/api/v1/statistics/query

Request body

Finance20ManagementStatisticQuery required— unresolved $ref

Response

Successful operation.

Finance20ManagementStatistic[] required— unresolved $ref