Documentation Index
Fetch the complete documentation index at: https://help.mytruv.com/llms.txt
Use this file to discover all available pages before exploring further.
The Spending Analysis response provides spending data grouped by category, merchant, or time period, along with summary statistics.
Summary attributes
| Attribute | Type | Description |
|---|
| total_spending | string | Total spending amount |
| average_daily_spending | string | Average daily spending |
| average_monthly_spending | string | Average monthly spending |
| total_transactions | integer | Total number of transactions |
| unique_merchants | integer | Number of unique merchants |
| top_category | string | Highest-spending category |
| top_merchant | string | Highest-spending merchant |
Spending data attributes
| Attribute | Type | Description |
|---|
| by_category | array of objects | Spending grouped by category |
| by_merchant | array of objects | Spending grouped by merchant |
| by_time_period | array of objects | Spending grouped by time period |
Response attributes
| Attribute | Type | Description |
|---|
| spending | object | Spending data from MyTruv API |
| summary | object | Summary statistics |
| request_id | string | Unique request identifier |
| created_at | string | Analysis creation timestamp |
| by_time_period | array of objects | Time periods with category/merchant breakdown (only when group_by=time_period and secondary_group_by is set) |
Endpoints
Example response
{
"spending": {
"by_category": [
{
"category": "Food & Dining",
"total": "1250.00",
"count": 45
}
],
"by_merchant": [
{
"merchant": "Whole Foods",
"total": "850.00",
"count": 12
}
]
},
"summary": {
"total_spending": "5100.00",
"average_daily_spending": "170.00",
"average_monthly_spending": "5100.00",
"total_transactions": 249,
"unique_merchants": 3,
"top_category": "Food & Dining",
"top_merchant": "Whole Foods"
},
"request_id": "req_abc123",
"created_at": "2025-03-15T10:00:00Z"
}