Retrieve Expenditure Insights (Bank Account)
Returns expenditure insights derived from submitted customer documents and transactions..
Path parameters
The id of the customer to return.
The id of the bank account to return.
Query parameters
Specifies the start date for data retrieval. Only data with a date on or after this will be considered. This helps in filtering the data to a specific time frame of interest.
Specifies the end date for data retrieval. Only data with a date before this will be considered. This helps in filtering data to a specific time frame of interest.
A comma separated list of document UUIDs. Only data from these documents will be considered (as well as open banking data). This helps in filtering data to include/exclude certain documents.
Unreconciled bank statements are statements where the difference between the parsed opening and closing balances is not explained by the sum of the parsed transaction amounts. Statements are typically unreconciled if the uploaded document has poor quality or is missing some of its original pages. It can also happen when the parsing models fail to parse and extract all relevant data. If this parameter is set to False, unreconciled bank statements will be excluded from the credit insights. This parameter defaults to True, keeping all documents included.
Response
Successfully retrieved customer expenditure insights.
Example response
{
"total_spend": 359606,
"spend_by_vendor": {
"AMAZON": {
"total": 10692
},
"ATRIUM": {
"total": 2500
},
"ATT&T": {
"total": 74
},
"COSTCO": {
"total": 2057
},
"EBAY": {
"total": 12884
},
"FRED'S FISH": {
"total": 13359
},
"MAGNOLIA CENTER": {
"total": 6000
},
"PADDY'S PIES": {
"total": 2542
},
"SBC-CA": {
"total": 74
},
"WALMART": {
"total": 9190
}
},
"spend_by_payment_processor": {
"APPLE CASH": {
"total": 10692
},
"AFFIRM": {
"total": 2500
},
"AFTERPAY": {
"total": 74
},
"CASH APP": {
"total": 2057
},
"KLARNA": {
"total": 12884
},
"PAYPAL": {
"total": 13359
},
"VENMO": {
"total": 6000
},
"ZELLE": {
"total": 2542
}
},
"spend_by_category": {
"loan": {
"mortgage": {
"total": 119100
},
"total": 119100
}
},
"metadata": {
"confidence_score": 0.99,
"included_data_sources": {
"documents": [
{
"document_id": "b3de84cf-97aa-4321-a223-51640d5d8fca"
}
],
"open_banking": [
{
"open_banking_data_id": "e959ed48-a9e4-44f3-a6f8-b9dddd21f27c"
}
]
},
"excluded_data_sources": {
"documents": [
{
"document_id": "fd7abd7d-5d62-42d0-b49e-62eae1fd4e22",
"exclusion_reason": "UNRECONCILED_BANK_ACCOUNT"
}
],
"open_banking": [
{
"open_banking_data_id": "920b148f-db30-46fe-8da9-3de2c9e55b04"
}
]
}
},
"confidence_score": 0.99
}