get_cospend_project_statistics
Generate per-member spending statistics for a Cospend project using optional filters for date range, amount, category, payment mode, and payer.
Instructions
Per-member spending statistics for a Cospend project.
Requires VIEWER access. All filters are optional and AND-combined.
Args: project_id: String project id. ts_min: Only include bills with timestamp >= ts_min (Unix seconds). ts_max: Only include bills with timestamp <= ts_max. payment_mode_id: Filter by payment mode. category_id: Filter by category. amount_min: Only include bills with amount >= amount_min. amount_max: Only include bills with amount <= amount_max. currency_id: Convert/filter by currency id. payer_id: Only include bills paid by this member. show_disabled: Include disabled members in the output.
Returns:
JSON object with stats (list of {member, balance, paid, spent,
filtered_balance}), plus aggregates such as memberMonthlyStats /
categoryStats depending on filters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ts_max | No | ||
| ts_min | No | ||
| payer_id | No | ||
| amount_max | No | ||
| amount_min | No | ||
| project_id | Yes | ||
| category_id | No | ||
| currency_id | No | ||
| show_disabled | No | ||
| payment_mode_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |