get_cospend_bill
Retrieve a single Cospend bill by its ID to view expense details such as amount, payer, shared members, date, category, and payment mode. Requires project ID and bill ID.
Instructions
Get a single Cospend bill (expense) by id. Requires VIEWER access.
Args: project_id: String project id. bill_id: Integer bill id.
Returns: JSON bill object: id, what (description), amount, payer_id, owers (list of member dicts who share the cost), owerIds (id list), date (YYYY-MM-DD), timestamp (Unix seconds), comment, categoryid, paymentmodeid, repeat ("n"=none, "d"=daily, "w"=weekly, "b"=biweekly, "s"=semi-monthly, "m"=monthly, "y"=yearly), repeatfreq, repeatallactive, repeatuntil, deleted (0=live, 1=in trash), lastchanged.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"bill_id": "<bill_id>"
},
"name": "get_cospend_bill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bill_id | Yes | ||
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |