sw_create_expense
Create a Splitwise expense with equal or custom per-person splits. Preview the transaction first, then confirm to record it.
Instructions
Create a Splitwise expense. Use split_equally:true to split evenly among group members, or provide a users array for custom per-person splits (paid_share and owed_share as decimal strings like "25.00"). cost must be a decimal string. Without confirm:true this returns a dry-run preview and makes NO network call; with confirm:true it creates the expense.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | Total cost as decimal string, e.g. "25.00" | |
| date | No | ISO 8601 datetime | |
| users | No | Custom split (mutually exclusive with split_equally). Full list of participants required. | |
| confirm | No | Must be true to proceed. Without this, the tool returns a preview. | |
| details | No | Notes | |
| group_id | Yes | Group to add expense to (use 0 for no group) | |
| category_id | No | Category id from sw_get_categories | |
| description | Yes | Short description of the expense | |
| currency_code | No | Currency code, e.g. "USD". Defaults to group/user default. | |
| split_equally | No | Split equally among group members (mutually exclusive with users) |