get_cospend_project_settlement
Suggest reimbursement transactions to settle a Cospend project's shared expenses, optionally centered on a member or limited to a date.
Instructions
Suggested reimbursement transactions to settle a Cospend project.
Requires VIEWER access.
Args: project_id: String project id. centered_on: Member id to center the plan on. All suggested transactions will involve this member (e.g. "everyone pays Alice"). max_timestamp: Settle up to this date (Unix seconds). Member balances will be zero at this date and bills after it are ignored.
Returns:
JSON object with transactions (list of {from, to, amount} —
from/to are member ids) and balances (map of member-id →
current balance).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| centered_on | No | ||
| max_timestamp | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |