Dimensional Summarize Transactions
dimensional_summarize_transactionsFull Description
Summarizes transactions and aggregates them into multi-dimensional summaries.
You can use it to receive timeseries data for that is aggregated and bucketed into dimensions (e.g. Category, Party, Time).
Important Notes
- If you are only requesting a Time summary, you must provide a filter (such as category ID/type, party ID/role, etc)
- Origin is required. Origin's "index" is 1 based for interval Day, Week, Month, and Quarter; it's the year for interval Year. "IntervalCount" is the number of lookback intervals. All fields in "origin" must be set.
- You must include "Time" in the Along dimensions when using intervalCount > 1.
- When filtering by balance sheet categories (Assets, Liabilities, Equity), you must set asPermanentAccount to true.
- Always resolve the party / category / department / location using search_term first, then use the IDs returned in the filter.
- The response may include a "summary" field where the current period amount is zero while prior period is non-zero; do not treat prior amounts as current-period values.
- Cannot answer questions specific to bills or invoices. Do not use expense or income transaction data to approximate bill or invoice amounts.
Examples
Retrieve a Party summary filtered by a specific category from June
- August 2023, where the parties are sorted by amount spent descending
{"filter":{"category_ids":{"ids":["6c11f4d9-3431-44cd-bb59-a51c490c1e19"]}},"origin":{"interval":"Month","year":"2023","index":"8","interval_count":"3"},"along":{"dimensions":["Party"]},"pagination":{"sort_direction":"Descending","sort_field":"Amount"}}
This will return a DimensionalSummary for August (index 8) , with the total amount booked to the specified category broken down by party. Note: pagination can only be used with a single dimension. If you want to compare August and July's' top parties, you must request for July and August separately with the Pagination sort set to descending by amount.
Retrieve a Time x Party summary with filters
{"filter":{"category_types":{"types":["Income"]},"party_ids":{"ids":["<party_id_for_acme_inc>"]},"party_roles":["EntityCustomerRole"]},"origin":{"interval":"Month","year":"2024","index":"12","interval_count":"12"},"along":{"dimensions":["Time","Party"]}}
This will return a DimensionalSummary for all Income transactions for the specified customer party_id for every month of 2024. This will include parties from both the credit and debit side of the transaction. You must pass a role (Vendor, Customer, etc) or some other appropriate filter. Note: since we are summarizing along 2 dimensions Time and Party, pagination field cannot be set.
Retrieve the top 5 vendors by spend for Q3 2024
{"filter":{"category_types":{"types":["Expenses"]}},"origin":{"interval":"Quarter","year":"2024","index":"3","interval_count":"1"},"along":{"dimensions":["Party"]},"pagination":{"page":{"limit":"5"},"sort_direction":"Descending","sort_field":"Amount"}}
Parameters (1 required, 11 optional)
business_idstringThe ID of the business. Use list_businesses to see available IDs.
aggregate_facet_kindstringUnknownTransactionKindTransactionSourceUserTransactionSourceInstitutionTransactionMatchedStatusTransactionPartyTransactionDepartmentTransactionLocationTransactionNewPartyalongobjectas_permanent_accountbooleandefault_category_typestringUnknownTypeAssetsLiabilitiesEquityIncomeExpensesCostOfGoodsSoldOtherIncomeOtherExpensesdirectionstringPastFuturefilterobjectinterval_partitionobjectmatch_bystringAutomaticCategoryCategoryTypePartyRoleProductAreanatural_flowstringUnknownFlowInboundOutboundoriginobjectpaginationobject