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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bill_id | Yes | ||
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |