Create Itemized Expense
create_itemized_expenseConvert receipt line-items into a Splitwise expense with individual splits per item, computing exact owed shares and reconciling to the total before creating.
Instructions
Create ONE Splitwise expense from itemized line-items, each with its OWN split.
This is how a receipt becomes an expense: the agent extracts line-items from the receipt image and passes them here. Each item can split differently (e.g. beers 3/4 to one person, groceries 4-way, cake between two) — the tool computes each person's total owed_share exactly in integer paise and reconciles to the total before writing. Set dry_run=True to preview the computed split without creating.
items: list of { "desc": "Beers", "amount": "2710.00", # rupees, string with 2 decimals "category": "Drinks", # optional (free text, informational) "paid_by": , # who fronted this item "split": { # OR "split_ref": "" "type": "equal" | "shares" | "exact", "among": [user_id, ...], # for equal/shares "shares": {user_id: weight, ...}, # for shares "exact": {user_id: "amount", ...} # for exact (must sum to amount) } }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| items | Yes | ||
| dry_run | No | ||
| group_id | Yes | ||
| description | Yes | ||
| currency_code | No | INR |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||