Skip to main content
The Spending Analysis response provides spending data grouped by category, merchant, or time period, along with summary statistics.

Summary attributes

AttributeTypeDescription
total_spendingstringTotal spending amount
average_daily_spendingstringAverage daily spending
average_monthly_spendingstringAverage monthly spending
total_transactionsintegerTotal number of transactions
unique_merchantsintegerNumber of unique merchants
top_categorystringHighest-spending category
top_merchantstringHighest-spending merchant

Spending data attributes

AttributeTypeDescription
by_categoryarray of objectsSpending grouped by category
by_merchantarray of objectsSpending grouped by merchant
by_time_periodarray of objectsSpending grouped by time period

Response attributes

AttributeTypeDescription
spendingobjectSpending data from MyTruv API
summaryobjectSummary statistics
request_idstringUnique request identifier
created_atstringAnalysis creation timestamp
by_time_periodarray of objectsTime periods with category/merchant breakdown (only when group_by=time_period and secondary_group_by is set)
total_incomestringTotal income (credits) across the period. Null unless include_income=true.
total_expensesstringTotal expenses (debits) across the period.
savings_ratestringShare of income retained, as a percentage. Null unless income is included.

Endpoints


Example response